Facebook Oauth allows redirection in Internet Explorer for advanced permissions

I am using facebook oauth with web authentication and advanced permissions

My final authorization url ends as

https://graph.facebook.com/oauth/authorize?client_id= {myAppId} & redirect_uri = {my_redirect_uri} & scope = offline_access, read_stream, friends_activities, user_activities, user_photos, friends_photos, USER_LOCATION, user_about_me, user_activities

This works fine in Mozilla and Chrome, however IE cannot display the webpage.

however, if I reduce the number of extended permissions only to offline_access, read_stream, friends_activities, user_activities, it works fine in IE too.

I see facebook redirecting this above request to the login.php page for some reason if I have more than 6 permissions in the scope parameter. It will not be redirected to IE

Does anyone see this problem?

+3
source share
1 answer

I experience the same thing, I think!

Does anyone know how to solve this?

My code seems to work in Firefox, Chrome and Safari, but not in IE (tested in IE9 beta, not sure about other versions of IE).

Perhaps this perms list is too long:

{perms:'email,user_birthday,user_education_history,user_work_history,friends_education_history,publish_stream'}

What we can do?

: , . IE, , Facebook . - IE8 , . IE. javascript/jquery, IE , . . / cookie, .

var ieLogonPage='/logon/' ;
if(($.browser.msie)&&(window.location.pathname=='/')) window.location=ieLogonPage;//IE doesn't seem to let Facebook logon from the main page. 

, .

0

Source: https://habr.com/ru/post/1760388/


All Articles