How to integrate Facebook in iPhone - iphone

I am working one of the application in which i have to implement facebook through FBConnect, i have done with that and it is working ,can post to the userwall, however the only thing which i didn't get is how to like any status updated by the user by default.Suppose in the appliction if user login and post anything through fbconnect that status should be automatically liked by default, i have search a lot however didn't find any solution.Please help me regarding for that

You probably can't do it in a single go. But you can get the POST_ID of the post you've just posted and then send HTTP POST request to https://graph.facebook.com/POST_ID/likes to achieve what you want.

Related

Track Facebook Wall Post existence through iPhone app

I have a general question. I am working on an iPhone App where we post certain things on a user's Facebook wall. We want to track if the exact post made the user still exist the day after. Basically, I want to find out if its possible to check whether a certain post that is made through our App still exist on Facebook or not?
If anyone has an answer for this that would be great!
Whenever you publish a post, a post_id is returned in the response. (Reference)
With this post_id, you can make a \GET request to /post-id and if you don't get the error, that means the post is still there. Or, you can simply check this link: http://facebook.com/{post-id} as #ceejayoz has mentioned.

How to get Facebook post id when uploading?

I have created a custom desktop app (Adobe AIR) that allows users to upload videos and pictures to their wall. As it turns out, I have to have control of these posts that get created by my app. I've read that everything you post using graph api has a post id:
http://developers.facebook.com/docs/reference/api/post/
I would like to know how can I retrieve this id so I can keep track of certain statistics later with FQL. Does anyone know how this is done?
While creating a post or uploading a photo to Facebook, the id of the newly created object is returned by Facebook. What you need to do is to fetch the response of the POST request you sent.
This should help https://developers.facebook.com/blog/post/498/
If you know C#.Net coding i shall provide you sample code for implementing it.
Get back if you need more help.
When you press on the timestamp in the head of the post you'll get a page with the post only with it's link in the adress bar, there you can also see the post ID.
That was what I've been looking for, and found out by myself...
Hope it helped you too.

How to implement Facebook to my app

I am used Facebook for my application where I have to post comment on wallpaper. But now I have to modify that application. I want page after user login it will give option like
post to wall
retrieve friends
logout
Can we implement this page after login instead of direct opening the page of post wall.
If yes then provide me some code with brief details. Even your previous code help me lot to solve my previous problem
Thanks
I am not sure if I correctly understand your question, but if you are looking for an easy way to post comments and images to a wall or also to retrieve friends etc ... go check out BMSocialShare - currently better use the dev branch though! In case you want to share to many other platforms as well try ShareKit.

Editing a User's Likes on Facebook

I've been looking at the Facebook API to find some way to edit a user's Likes (that is, add or remove items from https://graph.facebook.com/me/likes/). The API doesn't say anything about it specifically, but does say this:
You can publish to the Facebook graph by issuing HTTP POST requests to the appropriate connection URLs above.
Where above, one of the connection URLs is the aforementioned https://graph.facebook.com/me/likes link. However, there's no documentation for the PROFILE_ID/likes post, and whenever I try to post it returns the error "invalid post_id".
I assume this is because to like something, you post a request to POST_ID/likes. It's a bit inconsistent. What I'm trying to do is get the user's profile to add a Page to their likes (by posting using the page's id as an "id" parameter in the post body). However, it seems like there's just no way to edit user's likes.
At the end of the day, I just want to allow a user to click a button in my application (mobile device application, not a web app) and have them add our Facebook page into their list of pages, and I've found no way of doing that short of presenting our page to them and making them click on the "Like" button manually. Many other things are supported without showing the Facebook website, like posting to their wall or making albums, but I can't find anything to do this.
Any ideas?
Looks like I can't. Not in the way I want to anyway.

Facebook Wall Post

I have created one Web Application in ASP.Net. In That am able to connect with FaceBook and getting data from logged in user's profile. now i would like to post a message on wall. i have found the STREAM.PUBLISH method but i dont know how to use it. it asks me for permission. so is there any other way to post message on wall, any exmple using ASP.Net
Thanks
Here you can find a tutorial about it:
http://www.barattalo.it/2010/01/17/posting-to-facebook-from-website-with-facebook-connect/
Since it's written in php you have to translate something, but the important job is made with the facebook javascript api.