Reputation: 3299
Apologies this is a duplicate post of - Facebook Graph Api - Posting to Fan Page as an Admin
The graph API states verbatim that (https://developers.facebook.com/docs/graph-api/reference/v2.1/page/feed/):
The main body of the post, otherwise called the status message. Either link or message must be supplied. The message can contain mentions of Facebook Pages using the following syntax:
@[page-id]
For example the following message would mention the Facebook Developers page inline:
Test message @[19292868552] tag
If I post to a page (for which I am an admin) with the above syntax, using a page Id for the inline link (for which I am also an admin) and using a facebook application (for which I am a developer) this doesn't appear 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 rendered as it appears above, i.e. no link or mention. So far I have tried:
I must be missing something obvious if anyone is able to shed any light on this!
Upvotes: 6
Views: 7483
Reputation: 46
I was stuck on this for quite a while too. A clear answer was given by Igy on the Facebook bug tracker page...
To clarify, for testing this functionality before submitting it for approval you must be posting as a page you admin, tagging a page you admin, and using an app you admin - otherwise the tags are not applied
This is a great answer, but I misunderstood it at first. I was trying to @[page-id] a Facebook page with my test users page. I thought since I was logged into Facebook/developers as an admin with my personal facebook account that the test users I created counted as admin users too and I would be able to @[page-id] other pages they were admins of from their page.
It seems that you can only perform this functionality with the admin account you're signed into on facebook/developers. That account must have a Facebook page they admin, you must use the page access_token and @[page-id] a facebook page they admin from your users page in order for it to work. Once I got over the fact that I can not test this in my development environment with my test users It worked perfectly!
Hope this helps anyone else that might be haveing the same problem.
Upvotes: 0
Reputation: 43816
That's the documentation for API version 2.1, but your sample call there is unversioned and would thus be using the oldest supported version which is v1.0.
The v1.0 documentation doesn't say anything about that functionality, so it's likely only available in v2.1 or higher
The docs also say your usage of that feature needs to be approved before it can be used by the public, but i think using the correct version should get it working for you for test purposes, provided you're an admin of the App, the Page you're tagging and the Page you're updating
Upvotes: 2