sTERE0# 0 Posted March 30, 2014 Report Share Posted March 30, 2014 Помогите с настройкой кода #Настройки для авторизации через ВК $app_settings = "scope=notify,friends,photos,audio,video,docs,notes,pages,status,offers,questions,groups,notifications,stats,ads,offline"; $app_id = "4017074"; $app_redirect = "http://fenq.ru/"; $app_secret = "giHWZQIQlWwha0GwyZO7"; $vk_auth_url = "https://oauth.vk.com/authorize?client_id=". $app_id."&scope=". $app_settings."&redirect_uri=". $app_redirect."&response_type=code"; $vk_get_access_url = "https://api.vk.com/oauth/access_token?client_id=". $app_id."&client_secret=". $app_secret."&code=".$_GET['code']."&redirect_uri=". $app_redirect.""; Quote Link to post Share on other sites
pinchoalex 65 Posted March 30, 2014 Report Share Posted March 30, 2014 А тут что не так? какую ошибку выдает? это надо по ошибкам смотреть и пытаться понять... Нужен код ошибки sTERE0# 1 Quote Link to post Share on other sites
sTERE0# 0 Posted March 30, 2014 Author Report Share Posted March 30, 2014 {"error":"invalid_request","error_description":"redirect_uri has wrong domain, check application settings"} Вот тут можно посмотреть http://fenq.ru/ Quote Link to post Share on other sites
pinchoalex 65 Posted March 30, 2014 Report Share Posted March 30, 2014 вот и ответ - первое invalid_request - смотреть правильность запроса.. второе redirect_uri has wrong domain так же смотреть в запросе Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.