开发者

Permissions : I don't need user informations

开发者 https://www.devze.com 2023-02-05 16:45 出处:网络
I have just a quesition about facebook api. I use this code to know if the user is logged on Facebook :

I have just a quesition about facebook api. I use this code to know if the user is logged on Facebook :

FB.init({appId: '**********', status: true, cookie: true, xfbml: false});

I don't ask permissions. But when I redirect the user with this script :

if (!response.session) top.location = "https://graph.facebook.com/oauth/authorize?client_id=********&redirect_uri=http://ap开发者_开发百科ps.facebook.com/my_apps/";

the user is redirect to the Permission Asking page... But I don't need personnal informations in my application, I just need to verify if the user is logged on Facebook, and redirect it on login page. After he can use my application without permissions. maybe it's impossible... ?

Thanks you


You need to get the user's permission before you can get his login status. Search for login using facebook and use it.

Some facebook components like "Like Button" will have iFrame from facebook, So it can access user's facebook details.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号