Facebook Graph API: Call_To_Action for https://m.me links - facebook

Any dude could disclose how to do this?
What I want is, to use Facebook Graph API to post on my own page. The post should have the call_to_action button, which is linked to https://m.me/mypage
There's not much on call_to_action topic on graph api documentation. Scraphing through Google shows no related results/experiences. The ads-doc is restricted to ads-posts and not complete!
The following cta-types are not working: MESSAGE_PAGE, OPEN_MESSENGER_EX, OPEN_LINK and GET_OFFER... They all do not accept link to https://m.me. But external link likes: http://stackoverflow.com will works.
Following error shows:
(#100) Call-to-action is only supported for external links and some
types of Facebook links.
Any help are appreciated :)
Thank guys

Related

Facebook Graph API - Getting Comments

I'm trying to use Facebook graph API to get all the comments (mine and others) on my Facebook posts.
Currently I'm testing the api using Graph API Explorer & so far I'm getting only my comments.
I want to know did they change their policy or is there a way to get all the comments?
P.S: I didn't write any code so far.
But I followed the link:
https://developers.facebook.com/docs/graph-api/get-started
to use the graph API explorer and this is what I'm getting:
the image
In the "Tools" you will find the tool. And as you can see you will get the list of the comments. I'm just showing one of my comments (testingggg) as an example.
Unfortunately, the API doesn't give me the others' comments.
Am I missing something?
Thank you.
according to the document this is the way to get all the comment docs

Facebook Graph API get all comments

I've put a Facebook social plugin comments box on my site, in which i specified a Facebook Fanpage, as the comments target.
Now what I want to do is get all comments that are present in the comments box on page my page. I'm using this:
https://graph.facebook.com/comments/?ids=xxx
In place of xxx I placed my fanpage url (displayed comments just from one day even with limit set to 10000) and when this didn't work I tried my page url, which resulted in nothing being displayed.
The correct syntax to read comments from the Facebook Graph API is as follows:
GET /{object-id}/comments
So your URL would look like this:
https://graph.facebook.com/xxx/comments
Here's a live example that looks at comments on Coca-Cola's cover photo:
http://graph.facebook.com/10152297032458306/comments
You can read more about reading comments via the Graph API here.
check this stackOverflow topic
You need to call it from a secure request https and provide an access_token (19292868552_118464504835613 is Facebook post) :
( (19292868552) is the page or group id and (118464504835613) is the post id)
https://graph.facebook.com/19292868552_118464504835613/comments?access_token=XXX
EDIT:
Added the object from the post document. Try clicking the comments connection and then remove the access_token and try and see the difference.

Can you geo-tag a facebook post?

I am developing an iphone app and using facebook graph API. I need to know weather I can geo tag a facebook post ?
The feed dialog does not specify any attributes related to location.
http://developers.facebook.com/docs/reference/dialogs/feed/
Can anyone shed some light on this..
To tag a post with a location, you don't post to the /feed endpoint, you post to the /checkins endpoint. You can see some brief documentation regarding it on the Graph API Documentation page under the Publishing header, which tells you which arguments you can post (coordinates, place (id), message, and tags (for who's with you). There's a little more information on the Checkin Documentation page, but not a whole lot about actually posting them.
Hope that helps - and I'm sorry for the mass confusion; I completely whiffed on what you were asking originally :P

Uploading an image to friends' wall using Graph API

I would like to know the Graph API equivalent of the following action :
Go to a friend's profile page, click on "Add Photo" on their wall, then "Upload Photo".
I can upload images to my own wall and to my own albums, and I can also post messages and links to my friends' feed, but I can't figure out how to do this.
Any help would be greatly appreciated.
Thanks.
I was able to do it setting a "target_id" parameter, and uploading the image to "graph.facebook.com/me/photos". Then it does show up exactly as if it had been done the manual way.
The only thing I'm not sure about is if "target_id" is some legacy parameter from the REST API that will become unsupported in the future...
I believe that process adds a photo to one of your albums; then attaches that to a Post on your friend's 'feed' connection
You can find documentation for both of those steps on the developer site:
Upload Photo: https://developers.facebook.com/docs/reference/api/user/#photos
Post on wall: https://developers.facebook.com/docs/reference/api/user/#posts - see the 'object_attachment' parameter here

Unable to post links to an FB Event page using the Graph API

We are trying to publish to the feed resource of an event using the Graph API. What happens is it seems to ignore any link that we post. It also does not seem the Graph API supports any option for posting a photo to the wall of an event.
We make the call to the event feed using the following parameters:
link='http://rfid-social-media.odinrfid.com/photo?photoId=000000000000000000102107'
name='John at Facebook Party'
message='Test Message 2'
caption='What a great time'
And we publish against the url:
https://graph.facebook.com/EVENT_ID/feed
The request response does go through successfully, but the link does not show up in the UI.
We can post a link to a regular page using the Graph API without issue. It does show in the UI with the link, thumbnail, caption, etc, all as it should.
Thanks..
This is a Bug and its reported and marked as confidential
With the below text and its also contain security hole
bug report link
Below is my bug report text.
Other details on this report are shown to Facebook employees only
I recently attempted to post on an event's wall using the Graph API, but only the message is posted; Everything else is not showing. e.g.
Link
Picture
etc
There is one more big thing that the post doesn't show; That this post is post "via a Facebook app"
Note: posting on a page or user wall worked and also normal messages posted on an event 's wall.
The most important thing is when the post is shown on the event's wall "it does not show that its posted by a Facebook Application".
This is very dangerous; For example I can make an application and post nonsense on a user's wall. People will think that this is posted by the user.
Thank you so much for creating this question
For posting a photo to an event it seems to be a FB bug, subscribe and up the repo count so it gets attention
https://developers.facebook.com/bugs/225316074217855?browse=search_4f2f7576c5bc32d87041759