Callback after adding tab to facebook page
For an application I am working on, I need to add a tab to a pag开发者_运维知识库e on behalf of the user (with a bit of interaction from them).
Right now the only way I could find to do this is a redirect to http://www.facebook.com/add.php?api_key=APIKEY&pages=1&page=PAGEID&next=something
I need some feedback from facebook saying the page has been added - I thought the next parameter would cause a redirect but it doesn't. I also wanted to try opening a new window or using an iframe to do this in, and listen for the url to change, but I can't listen for cross-domain events.
Is there anything else I could look for to do detect this change, or an entirely different way to add tabs to pages, or am I going to need to add some kind of "click here after you authenticate" button?
Thanks!
You can do this by setting a post_authorize_redirect_url for your app. That url will get called every time someone authorizes your app and their profile id is included in the call. Here are some details.
精彩评论