Post on the active user's wall - facebook

I want my app/website to post on the active user's wall (likely as the status) that should look like the following image:
If I use the "feed dialog", i am not able to post custom header like USER gave a gift on APP
as in this image.
Also, after about an hour ago , i am getting via APP_NAME if I use Feed Dialog
Pls help :)

This isn't possible via feed dialog. You need to use Open Graph actions to accomplish this.
See: http://developers.facebook.com/docs/opengraph/

Related

How to get "Send Message" button in Facebook Page Post or Image Share via Graph API?

I am trying to automate Post and Shares in Facebook Page's feed using the Graph API.
For simple posts in feed like text and link I was able to do it with no struggle.
(Based in this: https://developers.facebook.com/docs/graph-api/reference/v2.10/user/feed#publish)
Then I got into making a Share of photo or video. Again not a problem. But I have noticed in Facebook Page itself it is possible to add a Send Message button. Where it even has a label with "Add this button to your post so people can reply directly in Messenger."
Facebook create post in Page
I was looking in the actions sections and other places and I found no way to add it via Graph request.
Currently, I am generating the Post via Graph like this:
POST graph.facebook.com/v2.10/MY_PAGE_ID/photos?access_token=PAGE_TOKEN&caption=MY_TEXT&url=IMAGE_URL
It it possible to add the Send Message button via Graph? Or this is only restricted to Facebook UI?
Thanks for the help!
Use this endpoint /page-id/feed https://developers.facebook.com/docs/graph-api/reference/v3.0/post
call_to_action parameter should be
{"type":"MESSAGE_PAGE","value":{}}

Adding Website content to User's Facebook wall

I've seen on some websites where users can select a check box to add specific content to their wall. For example, if they add an image or video to a website, the user has the option to "post to Facebook". Chill.com does this.
Also, SPOTIFY.com add to the user's timeline a notice that says they are listening to a specific tune.
If anyone has any info on this, it would be greatly appreciated.
The main method for these auto posts are actions
refer to: https://developers.facebook.com/docs/opengraph/actions/

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

facebook like not get the required image

I am creating a facebook like to put on my site. This component will read all posts from a specific page`s wall and display them.
I want to get the required image post on my wall when any user like my page from my website.. I have multiple facebook likes on my page ..
My problem is that when a user like any of the like button it get any image from my page and post it my wall . But i want that it get the specific image and post to my wall..
i also tried to put og:image But no success :-(
Any suggestions please.
You haven't given enough code to diagnose your problems, but assuming that you've followed the open graph instructions on the Facebook Developers site - http://developers.facebook.com/docs/opengraph/ - It would be a good idea pass your target URL through the Facebook Debugger (formerly the URL Linter) it will help show you any errors you have regarding your open graph tagging implementation:
http://developers.facebook.com/tools/debug

is it possible to add a a-href link to a user in a facebook wall post?

when you post a message using the facebookSDK, i was wondering if it is possible to add a link to another user profile?.
Something like:
Carl has left a message to Julian, Ana using the "Send Message" application
where Carl, Julian and Ana are links to their respective profile pages.
No, unfortunately you cannot tag people (friends) in that way using the api. I searched for ever to find a way for doing it, but it cannot be done.
Yes.I too tried the same . But facebook allows only plaintext to be posted as message to the wall.
Its better to drop the idea
Facebook now allows to tag poeple inside actions : https://developers.facebook.com/docs/opengraph/actions/#taggingpeople