Custom Content in wall post via web app - facebook

I have developed a website and I want users to be able to share their activity on facebook. I am able to post a simple message and an image using graph api, but I need to be able to post customized content, like Foursquare and other apps do. For example, when a Foursquare user shares his checkin on facebook, it shows a map and an info box which contains a few images of that place. How can I customize the content shown in the facebook post?

Related

How to post the post with template using Facebook Graph API?

Is it possible to post on user's timeline the post with custom template?
I have an facebook app, and want to post on user's timeline the post like this, or another custom html-template.
The idea is to share link with custom template or create post which links to my webpage.
For example like this
*If you click on map area you will be redirected to Endomodo Sports web page
Maybe it predefined by Facebook templates which depends on Open Graph actions and objects?

Publish via Facebook API: How to include link to original like Instagram does?

Typically when an application publishes to Facebook via the Graph API, Facebook includes a little link at the top of the news item indicating which application posted it, linking to the application's website.
I noticed recently that when Instagram shares a photo to Facebook the "Instagram" link at the top of the item points to the actual photo permalink instagram.com/p/whatever instead of just instagram.com.
Is it possible to set a custom URL per-post when publishing via the Graph API? Or some other mechanism? Or is this a special insider configuration for IG only?

Facebook: Share story without adding link to resource

I would like to make users to be able to post stories to their timeline but with no links to any resources. Using Facebook example:
I would like this post not to have any links. If someone using facebook on a browser clicks the image or the Cookie! title, they will be redirected somewhere. In my case, they are directed to an URL on my api which stores object data as meta tags from where FB scrappes the information (in this case, a blank page where the headers describe the Cookie! object). Is this even possible? I am developing an app for ios with no website, this is why I need to do this.

Is there a way to associate the Like button with a Facebook photo or other post on Facebook.com?

If I have a Facebook photo, can I add a Facebook button in an application that when clicked inceases the likes for the photo?
The parameter for the like button is a url. What do I need to put there so when clicked, increases the like count for the photo on Facebook?
No this is not possible - it's always separate.
You could do this through graph API and make POST to <POST ID>/likes/ but the Like button plugin only works for Facebook pages or URLs off-Facebook.
It does not work with content on FAcebook.com
Via the Facebook Like Plugin, as you said is url so it will not work.
The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.
Accoring to the documentation,
You will need to use the Facebook Graph API photo object by sending a HTTP request to photo_id/likes, where photo_id is the id of photo in question which you can also find from the photo link itself
https://www.facebook.com/photo.php?fbid=[photo_id]
You will also need to have the user grant publish_stream permissions.
You can try to use the Facebook Graph API explorer to try it, though I have not been able to get it working.

Reaching users of facebook app

I have a web app that is connected to facebook graph, and thus have a corresponding facebook app. I'm looking for a means of communicating with the users of my app through their facebook feed.
So far I've asked the users to like the facebook application profile page for my app, so that when I post news on that wall, the users get it. This causes some confusion since the application profile page is a bit of a peripheral component in the webapp-facebook relationship.
Ideally I would be able to post on facebook either as the app, so that I reach all the registered users, or as the app url (www.myapp.url) so that users who like that url will get the posts. Alternatively somehow link the application profile page and the url/app, so that likers of the url or users of the app get the profile page posts.
Note that I'm not looking to post to users walls (just their feeds) and I'd prefer to post manually, using facebooks interface for posting.
The only ways you can publish into a user's news feed is to use a Facebook Page or a Facebook Open Graph Object. So, you did right by asking users to like your Facebook Application Page. If you've also got a webpage that people like, you can turn that webpage into an Open Graph object by adding an fb:app_id or fb:admins meta tag to the head of the page. Doing this grants you access to publish to your fans' news feeds, and you get access to a Facebook page-like interface (for administration purposes only). You can publish to the user's feed using this feed publisher (just like you would do if your Graph object were any other Facebook Page).
To get to the admin page you just have to make sure your Facebook User ID is in the fb:admins meta tag. Once it is, visit a like button social widget for that object, and you'll get the a link that lets you go to the admin page for the object.
I hope that's clear. You should probably give the Open Graph Protocol Documentation a good read.