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

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.

Related

Is there API to get someone's facebook profile with out login to facebook?

I was wondering if its possible to get one's facebook profile (to be exact,'profile url') through their API?
I need an api to get fb profile link using a matching email address. I dont want to login to facebook though.I was trying to search for this but it seems you need to log in to facebook to get that.
Any idea or is it feasible?
You need ID of the concerned user which can't be achieved without using the Facebook Login, since Facebook login is the starting point to get the current user info (/me).
Search API could have helped you since you have the email ids of users, but unfortunately this api doesn't support user search with email!
So, answer is simple- NO, you cannot get the ID (profile link) of the user without using the facebook login.
Not that I can think of. Facebook's Graph API gives you some public info but that info given depends on the users Facebook's settings on what is public or not. You could maybe get some users profile picture but not others, making it not a very viable option for practical use. Hope that helps

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

How to make wall posts made by users on app's facebook page

Is there anything I need to do to make posts users make on their wall via a custom ios application using it's own facebook app id, also appear on app's (facebook app it uses I mean) own facebook page?
I would expect this to appear automatically but it doesn't seem to be the case.
In order to read one's Facebook wall, you need the access token to authenticate reading. This will give you access to all non-public wall posts. From this, you can pass the newly posted content to your page through the feed action.
Reference: http://php-academy.blogspot.com/2011/04/how-to-post-from-facebook-app-to.html
Enjoy and good luck!

FB Application post on user news feed as application

Not sure if this is possible (or if there is a similar way to do that):
I have an Facebook application that when a user installs it I want to generate news feeds to show to this user and only.
I would like that the news feed posts are personified by the application and not the user itself.
Is this possible?
If not, is there a way to achieve the same thing with a FB Page?
Thanks!
No, there's no way to write on a user's Timeline on behalf of an App or a Page, the posts will always be attributed to a user.
If you need to communicate directly with a user the best options are to either get their email address from the API or use Requests

Get users twitter id?

Can anyone tell me if there are any fields in the FB Graph that list a users twitter ID if they've linked it to Facebook.
No, there's no place in a Facebook profile to provide that information, and no way to retrieve it either - you'd have to get your user to log in to both Facebook and Twitter using their respective APIs