Mention Facebook Page on Post API Page

Sorry, this is a duplicate of the message - Facebook Graph Api - sending to fans page as administrator

The graphics API claims that ( https://developers.facebook.com/docs/graph-api/reference/v2.1/page/feed/ ):

The main element of a message, otherwise called a status message. Or a link or message. A post may contain mentions of Facebook using the following syntax:

@[page-id] 

For example, the following post mentions the Facebook Developer Page:

  Test message @[19292868552] tag 

If I post to a page (for which I am the administrator) with the above syntax, using the page ID for the inline link (for which I am also the administrator) and using the facebook application (for which I am the developer), this does not seem to work. An example of my call is:

https://graph.facebook.com/v2.1/page-id1/ feed?message=Test+message+@ [page-id2] + tag

In my case, the tag is displayed as shown above, i.e. no link or mention. So far I have tried:

  • Various combinations of page-id1 and page-id2.
  • HTML encoding the @, [, and] characters.
  • Publish as a page or user.
  • Using a different notation @ [page-id: page-name]. It does not display completely, it just becomes empty space.

I need to skip something obvious if someone can shed some light on this!

+5
source share
2 answers

Regarding API version 2.1 documentation, but your select request is not used, and thus will use the oldest version supporting v1. 0.

The v1.0 documentation says nothing about this functionality, so it is most likely only available in version 2.1 or higher.

The docs also say that your use of this feature must be approved before it can be used by the public, but I think that using the right version should make it work for you for testing purposes, if you are the administrator of the App, the page that you tag and the page you refresh

+2
source

I am also stuck on this. A clear answer was given by Igy on the Facebook error tracking page page ...

To clarify, in order to test this function, before submitting it for approval, you should place it as the page that you are administering, marking the page you are administering, and using the application that you are the administrator, otherwise the tags do not apply.

This is a great answer, but I didn't understand it at first. I tried @ [page-id] on a Facebook page with my test users page. I thought that since I logged into Facebook / developers as an administrator with my personal facebook account, the user users I created were also considered admin users, and I could @ [page-id ] on other pages that they were admins from their page.

It seems that you can only perform this function with the administrator account with which you subscribed to facebook / developers. This account must have a Facebook page that they administer, you must use the access_token page and a @ [page-id] facebook page that they administer from their user page for it to work. As soon as I realized that I can not verify this in my development environment with my test users. It worked great!

Hope this helps someone else who might have the same problem.

0
source

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


All Articles