Does someone know how to reply a review using API facebook, I have the id of the review and i don't know how to post the reply?
I have seen it in other question:
field=open_graph_story is the option available to get the object contains public reviews and id. to retrieve : {page-id}/ratings?field=open_graph_story to post :(POST) {object-id}/comments
I don't know how to exploite it
Thank you for your reply
Related
I am using following api for getting the ratting and a user comments for a page.
FB.api("/page_id/ratings?access_token="+access_token+"&limit=10&fields=reviewer{id,name,picture.width(120).height(120)},created_time,rating,recommendation_type,review_text,open_graph_story{id}",
but in response I just receive the review comments not a reviewer phone and its details.
Please suggest
I can only use POST page-id/ratings with paramater : rating:value
I can only rating page without review.
Anyone can help me, please.
This is not possible, the endpoint is GET only.
See the linked documentation from the earlier comment:
How to post a page review via facebook api
https://developers.facebook.com/docs/graph-api/reference/page/ratings
I'm trying to build a bot that would message anyone who mentions (#PageName) it. I have set up the mention webhook for my bot so that whenever anyone mentions my page in a comment or post, I receive a notification. Unfortunately, Facebook doesn't make it easy to message the person who mentioned my page, since there are different page IDs and messenger IDs. I am able to fetch the user ID from the mention by fetching the from field from the graph API, but is it possible to convert this user ID to a messenger ID so that I may actually message the user?
I'm trying to post a comment to my facebook using facebook API.
I'm trying to send this request:
https://graph.facebook.com/{post id}/comments/?access_token={token}&message=hello
This return to me list of comments but doesn't post the message I sent.
What should I do to post my message?
Thanks.
Update
As of April 24,2018, the publish_actions permission has been removed. Please see the Breaking Changes Changelog for more details. To provide a way for your app users to share content to Facebook, we encourage you to use our Sharing products instead.
You should make a POST request and make sure you have all the permissions required to publish. Docs here.
How can I reply to a private message on a fan page using the Facebook Graph API in a Facebook app?
I am able to retrieve private Messages from a fan page
I am able to reply as a user using chat API (User to User only)
I have valid tokens
I have read_mailbox, read_page_mailboxes permissions, and the following permissions to the page too:
ADMINISTER,
EDIT_PROFILE,
CREATE_CONTENT,
MODERATE_CONTENT,
CREATE_ADS,
BASIC_ADMIN
I am doing it as described here.
Some claim to have gotten around this. How have they managed this?
The documentation you linked to answers this question quite clearly.
From the docs:
**How to Reply**
Note that a page can only reply to a user's message. It cannot initiate a private message with a user. Also, a page can respond not more than twice to a user's message before the user has replied back.
You can reply to a user's message by issuing an HTTP POST to /CONVERSATION_ID/messages with the following parameters. A conversation ID look like t_id.216477638451347.
Parameter Description Type Required
message The body of reply string Y