Answer the question
In order to leave comments, you need to log in
How to determine the provider when authorizing through social networks?
I made authorization through social networks (Vkontakte for example):
If you want to log in through VK, the user clicks on a link like this:
http://oauth.vk.com/authorize?client_id=3333333&redirect_uri=http://mysite/index.php?do=auth_social&provider=vk&response_type=code
http://mysite/index.php?do=auth_social&code=1428c3455fg4c9cc9ab
$_GET['provider'] == 'vk'
, so I cannot determine through which social network the user logged in. Answer the question
In order to leave comments, you need to log in
Try like this:
You are trying to pass url to urle.
For url arguments in php use php.net/manual/ru/function.urlencode.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question