Is there a way to "link" facebook to your third-party website - facebook

I was wondering if there is a way to link your facebook account to another website, so you don't have to log in every time just to post a status update.
I'd like to link the profile when they sign up and then have it just be there to connect to whenever.
CLARIFICATION: Sorry I typed this fast.. here's what I'd like to do.. build an application where you sign up for that application.. you also have the option to link your facebook profile to this account. If you decide to link it, you can post updates, etc to your facebook profile.
You will never have to log into (connect) to facebook again after you link it to the app.. all you need to do is log into the third-party application.
Thanks,
Matt Mueller

Need clarification. You can link logging into another website to Facebook. What exactly are you trying to do?

you question, to be honest isn't very clear, but maybe you need facebook restful api so check http://developers.facebook.com and look for it.
bye

Related

Facebook PHP SDK - Post to user's wall as app and not user. How?

I have a few questions about Facebook PHP SDK I haven't found the answers to yet, hope someone here can help.
I have made a page where users connect to Facebook to be able to share things via my site on their wall. I don't want to use the offline_permission. But I need to be able to delay post, cause sometimes we need to confirm choices they use. I read that YOU CAN post at any time with stream_publish, but you need to post as THE APP and not THE USER. Right now I think I post as the user. How do I post as the app?
Thanks!
Read the Facebook Authentication documentation, specifically the section titled "App Login" where it tells you how to authenticate as the application. Basically you navigate to this url: https://graph.facebook.com/oauth/access_token? client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials and that will give you a session token to act as your page.

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.

How to auto-publish wordpress post to facebook fanpage without a facebook app?

My aim is to make a facebook fanpage for a client who wants his blogposts to automatically show up on his fanpage.
I've already read several posts here in the forums. I've tried several methods to auto-publish wordpress posts to a fanpage in facebook.(notes, ...) The last method I used was making an app and using the "Simple Facebook Connect" plugin for wp.
I got quite confusing with this. I have an app called "myClient" and a fanpage called "myClient". If I publish a blogpost, it automatically shows up on the fanpage but "via myClient". Is there a way on get rid of the facebook app? I don't want to show up the via-sentences because the app is just the connection between wp and fb and has no content at all (the content is on the fanpage)
Hopefully you can help me with that!
Thanks in advance.
Whenever you want to publish something on Facebook, you need a Facebook Application as it's the "trusted" connection between your source and Facebook (this is why you have the App Secret and all the authentication/authorization process..etc).
So, How to auto-publish wordpress post to facebook fanpage without a facebook app?
You can't! But what you can do is changing the App name to something the Client would agree on (and not being "already taken", of course!).
You can use the notes facility available. It is updated when the RSS address you provide updates.
Actually there is a way to get rid of the Facebook App - by using third parties automatic Facebook publishing tools like ZapRobot - in that way you actually lean on someone else's FB API APP. Note that then you give "manage_pages" permission to the third party. The process should be:
1) Register with ZapRobot - this is a Facebook login, you give them posting rights to your page
2) Define a job that posts A LINK (ignore their categories) while the link is pointing to the RECENT wordpress item on your blog
Good luck :-)

Social Media Linking

I've done a little searching and was wondering if there is a way to link a users account in our web app with their social media accounts they choose to link (facebook, twitter, etc). i.e. when they log into our web app they are auto logged into facebook, twitter, etc?
I see facebook has an api to login to our web app using their facebook book account but I want it to work the other way around, I want them logged into facebook when they log into their account via our web app.
Thanks,
Ryan
It is definitely possible-from your question I assume you would like to pull data and make actions on behalf of a user? If so, you will need the offline_access permission as well as all the other permissions you will need (check out the list here to see exactly which ones you require). Then, you can trigger a script on your server that tell facebook as soon as the user is logged in to your site, to log in your application as the user as well.
NOTE: You might be going about this in the wrong way. I would advise that you specify a bit more details on what exactly you need the user to be logged in for, and I can (probably) provide you with a decent answer.
EDIT: In response to your question in the comment, Ryan, here is my answer:
You need to divide this problem into 2 different situations-one: your company wants you to write all the code from scratch and don't use what facebook has to offer, in which case you should create a custom login script that enables your users to use their facebook account as the Actual user account in your web app. This is the best solution in my opinion, and is supported by the ever-so-awesome Jeff Atwood. Here's a link to how to do just this, and a tutorial about this also.
Or your company is comfortable with using Facebook's Social Plugins.
Then you should focus on Like Button & Comments : These social plugins are the best way to enable people to create social experiences if they're already logged in.

Can I use the facebook credentials to for users to access my site?

I'm starting to work on a site that will be strongly connected to a corresponding Facebook app. I want the contents to be free for all to view, but only registered users will be able to edit it (quite similar to serverfault, actually).
Since I think that most of my users will be logged in to facebook, I would really like to use their facebook credentials as to login to my site - the same way Open-Id registration works here.
Can this be done?
Thanks,
Udi Pasmon
Yes, this is one of the things provided by Facebook Connect. There is a wiki full of documentation - start at "Authenticating Users with Facebook Connect".