Integrate facebook users on Plone - facebook

I'm creating a Plone site which will allow users to register with Facebook but I need more than just like boxes and feed forms.
I already have collective.simplesocial[1].
Logged users are expected to have some more data than the Plone default (i.e. height, weight, average workout...) and the data that one can get from Facebook.
So the question is: how can I register users that some data comes from Facebook? Facebook connect is quite handy since whenever the user is logged on Facebook, it will also be logged on my site.
Maybe a Plone PAS plugin? Or just prefilling the register form (though then the user will not be auto-logged with Facebook connect?).
Any help will be appreciated!
Cheers,
[1] http://pypi.python.org/pypi/collective.simplesocial

According to comments here:
http://blog.mfabrik.com/2011/04/18/integrating-facebook-with-plone/
Martin's next book would contain related example.

I've done some initial work on Facebook-integrated registration and login for Plone:
https://svn.plone.org/svn/collective/collective.facebooklogin
It's basically in prototype stage at this point, but feel free to branch it and extend it to meet your needs. A brief demo of the current functionality is available here:
http://www.screencast.com/users/yomatters/folders/Jing/media/4e3e8aff-1e9c-4133-ad51-ef94ad7a9927

Related

What application control request to pull content from Facebook?

On my site, I allowed members to register the address of their Facebook page to automatically display their public posts.
It worked very well. I had the Page Public Content Access permission.
But the authorization, after several years, was withdrawn from me. According to Facebook, it is only approved for statistical purposes. Facebook recommends the "Oembed read" permission to me. All right, I got it. But she does not meet my needs !
According to their documentation, it would not be possible to extract information from Facebook outside of oEmbed.
Ah ? However, by searching on Google "Facebook to rss", we find many websites which, without even registering, offer this. This website, for example. So how do they do it?
I wrote it to Facebook support, who answered next to the question.
So how do you do it? How can I offer my members to automatically publish the publications of their page on our portal?

Facebook: Using my drupal comments system and FB comments all at the same time, and storing comments inside my own site and not FB?

I´ve just started to test, use and play with facebook apps. I´ve searched stackoverflow but didn´t find exactly what I need, so, here I am.
I´ve a drupal site. I´ve installed the Facebook for Drupal module, so I can use facebook in my site. I want users to be able to post comments in my site without creating for them any account.
I can use that module for that.
So, the question is: is there a way to allow people to use the default Drupal comment system, so when anonymous users want to comment they can post the comment directely to my site, or if they are logged with their FB account they can post comments as their FB user?
I want every time the comments to be posted inside my site, I mean to be hosted inside my own database. That´s why I don´t want to use disqus.
But I´ve read that you can use either Drupal comments OR FB comments. Are FB comments hosted inside FB and not my site?
As you can see, I´m not much into FB, so I don´t know much about it. I just want my users to be able to interact in my site with their FB accounts if they want.
Hope someone can help me out with some insight. Hope this question is clear enough... english isn´t my mother´s tongue and it was kinda hard to explain what I need :)
Use normal Drupal comments, and just allow people to log into your site using fb_connect.module from the Drupal for Facebook module, or using the Facebook Connect module. And of course allow anonymous commenting as well to meet your other requirement.

Integrating facebook 'compose new message' popup into my website

I am designing a website that will be heavily integrated with facebook. Members connect to the site via their facebook accounts and facebook authentication/permission is used to access their friends list and other information.
There are instances in which I would like the site to be able to send facebook inbox messages to selected people from the user's friends list (in a user initiated manner).
I have discovered that this is not possible through facebook permissions.
One idea that I have is to have Facebook's "Compose New Message" popup to appear overlayed on top of my site (as would appear when clicking the "Send new message" button on a user's profile page). The user would then type a message and press send (hopefully circumventing the permissions issue).
I have browsed the facebook developer docs and forums, but my technical knowledge is limited. I just want to know if this is possible or not, and to be pointed in the direction of material on how this could be achieved (so that I can pass this on to hired developers once I reach that stage)
Any help or suggestions on alternatives would be gratefully received!
Pete
The closest you can be to your goal is using the Send Button. However, this button is used to share links, which are usually open graph pages. What you can to is specify a dummy href/link so that it shows a blank page. Or, better if you actually needed a link attached, then you have no problem.
There is no way of doing it using Graph API Message Object. There are no publishing rights to this object whatever permission you ask from the user. It is read-only. Just look at the extended permission it is only read_mailbox - "READ_mailbox".
Even FQL can't help us with this.
Also, facebook is in the process of migrating to a new messaging system. So playing around with is now is not advisable.
What you can do now is utilize the Send button I mentioned above.

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.

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.