Adding a Facebook application to a page via API

I am trying to add a Facebook application via api. I used http://www.facebook.com/add.php?api_key=xxx&pages=1&page=xxx

This adds the application as a tab on the page successfully and works. However, my doubts:

1) should it be documented? I can not find any official documentation (or am I missing something?)

2) is this the only method or is there any other means? The above requires an active login. Something through api chart etc. Via oauth_token to be used in the external application.

3) What else can I do with this other than adding? For example, do it as a landing tab, etc.

Many thanks.

+3
source share
2 answers

Here's how to use the Graph API

https://graph.facebook.com/<page_id>/tabs?app_id=<your_app_id>&method=post&access_token=<previously_fetched_access_token_for_page_id>

First you need to request access with scope, including "manage_pages" in the request. Then you can get custom pages using "/ me / accounts" access_token = '

As soon as you get a list of pages, an access token should appear on each page, which will be used with calling the tab APIs.

Here are some links -
http://forum.developers.facebook.net/viewtopic.php?pid=361995
https://developers.facebook.com/docs/reference/api/

+6
source

As for No. 3, I believe that with the latest update, FB will eliminate the possibility of choosing a custom tab for installation.

0
source

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


All Articles