# Mentions on Facebook, linking content from my App - facebook

I know that there's no API from Facebook for adding #mentions in the post from Apps & that the message_tags are read-only, but how the other Apps on Facebook link content on the messages in their posts?

This is representation of OpenGraph actions user performed on objects and published by applications.
There is a tutorial and samples. Read Key Concepts of OpenGraph and/or OpenGraph documentation for more detailed information.

Related

How to publish a persolized newsfeed on users stream in Facebook?

I read the Facebook developers guide, but I'm not sure to have well understood wheter my goal is achievable or not.
I have developed a small app that asks to users their topics of interest, so they will receive filtered updates on those topics. This currently works, my database stores users and topics.
Now I want to publish on registered users stream a newsfeed if there are updates on the topics they selected (in the oauth dialog I asked permissions for "publish_actions").
My app doesn't use OpenGraph, I would that the newsfeed has my apps as title, a small picture and a brief description and it links to and external site (not mine).
The feed is personalized, so that's why I don't use a Facebook page.
Is it possible to realize this?
Thanks in advance
This is not allowed by Facebook Platform Policies. Publishing something to the wall must be related to something the user has done, e.g. User has read an article or User has achieved a high score. Posting an link / article to the user's wall is not allowed since it's not a direct action the user has taken.
Instead, you should provide the user with personalised RSS feeds. Each user would have their own RSS feed related to the topics they have indicated they are interested in. Facebook shouldn't be used in this way.

Facebook shows news feed messages that aren't returned by any of the APIs

I noticed that my feedback news feed shows certain posts that aren't returned by any of the API's. (I tried the GraphAPI and the legacy REST API and FQL).
I can see those status updates at http://facebook.com on my news feed and I can also see them in the Facebook mobile app on iPhone and the mobile app on Windows Mobile.
Some of my friends seem to have set a privacy setting. I think it is this one: "How people bring your info to apps they use" - decheck "My Status Updates", although I can't confirm that is the only reason their posts don't show up, it seems one possible explanation.
So, what API are these facebook mobile applications using which returns the same data as the web site ? Is it possible for me to build another facebook client using that API?
Have you acquired the read_stream extended permission? This is required to see all postings. Typically without it you don't see any posts, but I think you can see posts that are marked as being completely public.

Programmatically posting Facebook comments

My application has obtained publish_stream permissions for a Facebook user.
I'd like to allow the user to post comments for a target URL directly from my mobile application, rather than opening up an embedded browser that then shows the Comment Box plugin. That is, the user doesn't necessarily want to post the link to their feed -- rather they want to participate in any Facebook comment discussion that surrounds that URL.
Naturally, I can read the comments for any URL via the Graph API (eg: a techcrunch article) but I do not know how, or if I can add comments to an arbitrary URL programmatically.
Would love to hear any other suggestions or workarounds as well. My hope is to piggy back on Facebook comments to allow my users to have a conversation surrounding URLs of interest to them. If at all possible, I'd also prefer to use Facebook, though I can see using Disqus or similar services would be another possibility.
Use graph api, demo comments here
make POST to
http://graph.facebook.com/comments/?ids=http://techcrunch.com/2011/07/22/big-surprise-the-ipad-trumps-android-tablets-at-the-office/
with field message and value "yourmessage"
I genuine Facebook API bug.
Cannot comment via Graph API on Comments Plugin (Probably try Legacy API)
Graph API

How to update facebook profile info from code?

Does someone know the API for updating user profile information on facebook?
I want for instance to change my location from my client application. Is that possible?
I am using Facebook C# SDK, but an example in any other language would be great.
I do not believe they support updating a user's profile information from the exposed Facebook API. The Graph API documentation currently states that only the following elements are editable (editable as in, you can create them):
Wall Posts (feed)
Object Comments
Likes
Notes
links
events
event status
albums
album photos
checkins
As you can see, the User object is not one of objects Facebook exposes for edit purposes. It does support the ability to publish location checkins, however. While this does not meet your goal of modifying the location attribute of a user's profile, it does provide some basic abilities.
POST https://graph.facebook.com/<profile_id>/checkins?
access_token=<access_token>
&coordinates={...}
&message=my+message
&place=<page_id>
&tags=<tag1>,<tag2>,...
See the checkin documentation for an example using curl. This example should be executable by any platform specific Facebook API (Java, C#, etc..).
You can't update informations from the API. All you can do is reading / searching / posting / deleting / analysing data.
You can find everything there.
Cheers

using Facebook api to access recent activity section

A user's wall has sections titled "Recent Activity" which include links to posts that the user has liked or commented on, plus recently used applications, new friends etc.
Is there a programmatic way to access this information using Facebook api or something else?
I noticed this info isn't included in user feed.
thanks alot
Isn't this the same with user feed? If so you can query the graph API by calling:
https://graph.facebook.com/<facebookID>/feed?access_token=<your access token>
Good luck!
As far as I can tell, this information isn't available through any API that Facebook offers.