Facebook sharing event answer - facebook

In facebook API 2.0, I found all the information how to create a Share button, but no information on how to find out whether the user shared or not? I found an option for the old API, but in the new it does not work.
Someone know? Is it possible and how?
I need to get the information the given user shared post/info from the site or not.
Thanks.

Related

Check whether link has been shared by friends on Facebook?

Is it possible to check whether a URL has already been shared by a user's social network on Facebook?
I have looked at developer.facebook and the graph API reference. I can't see an obvious way to do it, but wondered if anyone had a work around?
Thanks

Determine if user has shared on facebook via my app

I want to know if is there any way to check if the user has shared a link to my app via facebook.
I have implemented the ability to share a link to my app, and I just want to know if the user has shared it or not.
Thanks in advance.
When user share from your app you can store user's post id.
You can't look at a user's facebook posts without permission from the user. What would be a good idea is to, when you do create the link-sharing code, store the information that the user shared the link. Not the most ideal solution but, you know, privacy laws and stuff.

Anyone know of a good tutorial for Facebook authentication?

I'm linking my app to Facebook, and would like people to log in with their Facebook account, but I can't figure out how to do this. I had read up on Facebook Connect, but it seems that that's not used any more - but every tutorial I can find seems to refer to it. When I try to follow them, it doesn't work, because the interface has changed.
So, can anyone direct me to a tutorial or guide to doing this the new way?
Basically, what I want to do is this:
A user who is signed into Facebook and comes to my webpage is automatically logged in to my app (with the usual Facebook 'granting permission' windows etc), or can sign in with their Facebook account if they're not already logged in.
I then want to use Facebook to link users with their friends who are also registered on my site, so they can share things.
I would also like to have access to Facebook comments made on wall posts from my site - so the comment stream for a particular post can be seen on my site as well as on Facebook, and comments can be made on either.
If anyone can point me in the right direction (or even tell me what I should be typing in to Google!) I'd be very grateful.
Thanks.
Some sample apps that do many of the things you speak of are shown here. The Graph API is probably your best bet right now for delivering the content and access you need and there are numerous tutorials online for how to use it, including the Facebook Developers site itself.
You will find good Tuts on ThinkDiff, e.g.
http://thinkdiff.net/facebook/new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/
http://thinkdiff.net/facebook/php-sdk-3-0-graph-api-base-facebook-connect-tutorial/
http://thinkdiff.net/facebook/graph-api-iframe-base-facebook-application-development-php-sdk-3-0/
I know this is an older question, but the current method for authentication is OAuth 2.0.
Facebook provides a pretty good outline of what steps are necessary in this Reference:
https://developers.facebook.com/docs/authentication/client-side/
This example allows the authentication to occur entirely in Javascript on the client side so that you can request a potential user to authenticate via Facebook and then confirm access to your application.
If the user is already logged in, only the access confirmation for your application is performed.
If the user is already logged in and access has already been granted, the user is not required to login, or reconfirm access.

Get application liker via graph api

How can i get all the facebook user id whose like my application via a graph api.
Please give any suggestion.
Like facebook fan page showing application liker randomly. I also want to access my application liker list and want to save in database.
Please tell me if any possibility? Need your suggestion...
Thanks
Sorry, I don't think that's possible for privacy reasons Facebook doesn't allow it. You need to get people who like you application to install and authenticate it before you can find out more about them. However, I do remember someone managing to scrape the fans of a page before so maybe that's possible for applications as well...

Create a new FaceBook page via the FB api

Is it possible to build a new Facebook page via the api?
I can't find any documentation regarding this. I presume it would just be a matter of passing in an email address and password to register then passing in any profile info/data.
I'm not particularly looking for a how-to-guide just would like to know if it's possible and for someone to point in the right direction.
Thanks
Unfortunately, you can't create pages with any of the Facebook APIs. You can only do this through the user interface on facebook.com.