How can i select facebook user friends in facebook application? - facebook

i am new in facebook application. now i am working on facebook application and i want some effect like in facebook when we go in our profile and on status update we can see one facility like who are with you? means we can tag our facebook friend at the place where we are at that time. i want this effect in my facebook application, so i can tag my friend at where am i? i that any api for fetch our facebook friend and tag them?i tried to get friend but i only display it i can not select them.Thank you in advance.

Try this.
You can create a tag on the photo by issuing an HTTP POST request to the tags connection, PHOTO_ID/tags.
https://developers.facebook.com/docs/reference/api/photo/

Related

Get all Facebook friends that like a specific page

is there an easy way to get all Facebook friends that like a specific Facebook page?
I know that there is this site here
https://www.facebook.com/browse/friended_fans_of/?page_id=245323855526590
Where you can type in the page_id and get all friends that like this. But is this also possible with the Graph API? Or would I need to go every friend of a user, using the correct permission and THEN check if the user likes a specific page? I couldn't find an API Endpoint in the API Reference of Facebook

How do I use the facebook api to get another users feed

I'm using Impactworks graph handler to get my facebook posts successfully.
http://blog.impact-works.com/2011/07/01/importing-user-info-using-facebook-graph-api-asp-net-part-1/
But how do I get another users posts from their wall? Do they just need to add my app to their facebook?
Do they just need to add my app to their facebook?
Yes. But, you can get the public posts simply using:
/USER_ID/posts
/PAGE_ID/posts
, even if the user is not using your app.

Code for inviting friends

I need a code for inviting friends to a fanpage.
http://developers.facebook.com/docs/reference/dialogs/requests/
This is linking to the website. Is it possible to link to my fb fanpage?
Actually if you read the whole documents, that Request feature is for Facebook Application only. But here's a work around :
Create a Facebook Application
Have a great content where everyone wants to have
Put a Like Gate before they can access your great content
You can still use the App Request for your app while the user likes your page

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.

Updating Facebook Page From Twitter

I'm looking for a service (or Facebook app) that will check my Twitter account and update my Facebook page whenever there is a new post on Twitter. So far I've tried the following to no avail:
Twitter facebook app
Ping.fm
HelloTxt.com
Any ideas what I can use to do this? Thanks for your help!
I use Selective Twitter Status, it's a Facebook app (3rd party) that reads your Twitter stream and updates your Facebook status from it. The advantage of this app is that it's selective, it only updates FB if your tweet ends in '#fb'.
Inside your Facebook profile, right below your status, click Options and then Settings.
You should be able to select Blog/RSS under the Imported Stories and then put in the link to your twitter's RSS feed.