Callback after adding bookmark to facebook page

For the application I'm working on, I need to add a tab to the page as a user (with a bit of interaction with them).

Right now, the only way to find this is to redirect to http://www.facebook.com/add.php?api_key=APIKEY&pages=1&page=PAGEID&next=something

I need some feedback from facebook in which the page is added - I thought the next parameter would cause a redirect, but that is not the case. I also wanted to try opening a new window or using an iframe to do this and listen to the url to change, but I cannot listen to cross-domain events.

Is there anything else I could find to detect this change or a completely different way to add tabs to the pages, or would I need to add some kind of click here after authorization button?

Thanks!

+4
source share
1 answer

You can do this by setting post_authorize_redirect_url for your application. This URL will be called up every time someone authorizes your application and their profile ID is included in the call. Here are a few details.

+3
source

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


All Articles