What is the best Facebook / Twitter SSO framework - javascript

I have a website where I want users to be able to leave reviews and rate products. I want some sort of SSO based system where they can use existing facebook / twitter accounts to "sign in". It is essential that I am able to uniquely identify them once they have so that they cannot rate products more than once etc.
What is the best system to use?
The requirements are:
Easy to implement
Lightweight
Facebook / Twitter integration
Ability to uniquely identify users
once they are signed on and possibly retrieve basic information such as First name and initial etc

You might also want to take a look at Wordpress, it is, in my opinion, one of the better frameworks for this sort of thing. There's a plugin called WP-FB AutoConnect here:
http://wordpress.org/extend/plugins/wp-fb-autoconnect/
Hope this helps

It sounds like you're looking for something like Janrain Engage which is a library that lets you integrate login with popular social media sites.

I think the only thing that comes close is YQL

I don't know what your skill level is, but if you don't want something like wordpress. I've used CodeIgniter with https://github.com/ericbae/Tank-Auth---3rd-Party-Authentication-Project
It gives you facebook, twitter and google friend connect.

Related

Integrating Bootstrap admin panel into website, what are my options?

I've been developing websites for clients for a number of years, mostly static HTML sites, and some clients needed things like ecommerce so I went with WordPress and Drupal. Recently, however, I've decided that I want to be able to give my clients a more professional looking package when it comes to the CMS sites, so I want to step away from things like WordPress.
I've found several very nice Bootstrap Admin Themes that I am going to take inspiration from, and designing the admin panels isn't going to be a problem. What I need to know is, what sort of back end is needed for using a custom admin panel with a website? Can I simply make the panel and program a few CRUD methods into it? Or are there CMS options out there that will allow me to integrate these admin panels into them?
Sorry if this is off topic, but I've googled and searched this page countless times for this answer and can find no good information on it anywhere! There are so many templates I'm assuming someone is using them
I'm not replying with an answer to your specific questions more an alternative.
Have you considered custom Admin panels in wordpress - like these - https://codecanyon.net/search?utf8=%E2%9C%93&term=WordPress+Admin
Just an idea.
You can start with ready to use bootstrap admin templates as you will get many admin templates with backend integration. It will save your time and money too on the development process. With bootstrap admin templates you will get ready-made UI design that you can change as per your requirements. If you want to do any customization on admin templates, then it is easy to do so.
You can also consider this resource with good options for Backend admin panel templates for your website.

How to add a "# users online" feature to Meteor app?

I'm working on a Meteor app and I want to add a feature that would say how many people are on the website at a time, similar to omegle.com where it says "38,000+ online now" or whatever. Is this possible with Meteor? If it is, I have no idea how to execute it, and that's why I'm asking it here. Does anybody know how to do this?
You can use presence package for that purpose, see https://atmospherejs.com/package/presence . It provides the live data on the user state. For example, the easiest way to get the number of online users is:
Presences.find({online: true}).count();

Is it possible for a Facebook app to tell how many people like a page?

I just got a screenshot of an application, which says that more of your friends need to like the page in order to see the content. I am wondering whether this is a scam, because, as far as I know, one cannot tell how many friends like the page.
Does Facebook API provide a way to track the number of friend likes? or generally, how many people like the page?
Yes, if the app requests permission to see your friends list and you add the app (and in doing so grant permission).
Many apps know if your friends are online and how you rank in points in comparison. Look at nearly any Zynga game and you'll see that list/ranking at the bottom.

Get suggestions for Occupation, College, etc. from Facebook

I'm writing a Facebook application, somewhat like a dating site (but not quite), and would like to allow my users to specify what kind of person they are looking for in terms of occupation, college, area, etc. I would like to make suggestions that match the suggestions Facebook provides when you change your own user profile details.
Of course, this could just be a text field, with some of my own custom AJAX suggestions, but is there not perhaps an API provided by Facebook for this sort of thing? If not an API, has anyone had success with using the same /ajax/typeahead/ script that facebook calls for this goal? How resistant is it to change?
Edit
I didn't mention any effort before - but that is basically because all my searches turned up nothing: I find no mention of this in the Facebook API, either the Graph API or the javascript SDK, and Google searches turned up nothing that I was looking for. Mostly people have only discussed the 'friend suggest' feature of Facebook in regards to any kind of 'suggestion', but not the AJAX-type autosuggest that I have in mind.
Look for this function at Facebook API and deprecated Legacy is what you get: http://developers.facebook.com/docs/reference/fbml/typeahead-input/
You have to look for something else than Facebook to implement it on your app.

App Engine and Facebook: which libraries to use?

I will be developing a web application with Google App Engine that will use Facebook Connect as the only means of registering / logging in. The web app will be written in Python. I need to know their name, profile pic, how many friends the user has, as well as their age and also possibly location, relationship status, work info, etc. (although those are mostly optional besides name, pic, age and friend count).
There seem to be a number of libraries that can do the task. There is the official Facebook Javascript SDK, minifb, and pyfacebook to name a few.
How do you think I should go about this task? Which libraries should I use, and what are the pros / cons?
Also to be considered is how well documented the code is and how widely it is used. If you can provide links to relevant example code / documentation, that would be greatly appreciated.
Facebook python-sdk has an example application to use Facebook connect with Google App Engine. I guess, you are looking for the same.
This should be a comment for the answer which suggests using the Facebook python-sdk.
Note that at github it says
This SDK is deprecated. It does not support the new cookie format that
we rolled out as part of the OAuth Migration. In short, it doesn't
work.
I've had success with the facebook-sdk project, which I believe is a fork of Facebook's original (and now dead) python-sdk project noted above. However you may also wish to check out EngineAuth.
Why don't you check out this similar question asked by another StackOverflow user:
Simple Facebook Connect in Google App Engine (Python)
There are some links provided here that sound exactly like what you're looking for.
For all specified detail you need to go with respective permission from users and then you can extract all specific information you needed.
You can go by either Graph Api or Javascript Api:
But with javascript you need to use many ajax request through your application where graph api only need access_token once for particular instance and also independent of client action.
Graph API also helps you in preventing use of other framework like pyfacebook, minifb, etc.
Apart from pros and cons you can also look some example code for both javascript and graph api
Hope this information will be useful to you.

Categories