简体   繁体   中英

Facebook App Permissions Leads to Blank Page

I've been using PHP to make websites for a while, and thought it'd be fun to try my hand at making a Facebook app.

Everything was going smoothly until the last issue. For some reason, when the user clicks on the link to grant extended permissions, they are shown a blank page that has the Facebook logo and nothing more:

<a href = "https://graph.facebook.com/oauth/authorize?client_id=XXX&redirect_uri=http://x.com/next.php&scope=offline_access,read_stream,user_groups" > <img src ="images/analyze.png"> </a>

This was not a problem earlier in development. I have no idea why this is happening, and am fairly sure earlier on, it was not happening (when I just started making the app, the extended permissions page seemed to work fine)

Any thoughts? Would greatly appreciate it. If more info is needed, please let me know.

我认为问题是,如果我记得正确的target="_top"可以解决此问题,则不允许您在iframe中打开Facebook:

<a href = "https://graph.facebook.com/oauth/authorize?client_id=XXX&redirect_uri=http://x.com/next.php&scope=offline_access,read_stream,user_groups" target="_top"> <img src ="images/analyze.png"> </a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM