Logging in to other wesites using Facebook Account - php

I am developing an advertisement site in PHP, the user can only list there products by logging in using there account in the site. Also i need to have another option for users to login into the website using there Facebook account and hence advertise about their products. How can i implement? Do i need to create any application instance in FB for this? I am looking forward for valuable suggestions.

Create an app.
Look into authentication, and see which method (server-side vs. client-side) fits you.
Once you've implemented that, you can make graph api calls. https://graph.facebook.com/me gives you the user's basic details
Good luck.

Related

Is it possible to use intuit quickbooks online API without creating an app

I went through the Quickbooks online API documentation and it looks like I've to create an App in Developer Dashboard and then provide Terms and Conditions, privacy policy pages, Connect/ Disconnect URLs, etc. in order to to use it. I need to implement this feature for my own website and don't want to make it an App. Can't I simply make API calls from my website, without having to go through the hassle of creating an APP, go through verification process and all the details?
You have to make an app, yes.
You do not need to publish the app or make it available to anyone outside of yourself.
All an "app" is in this context is basically registering your email address with Intuit, so that you can get a set of OAuth keys to be able to authenticate. Nothing more. You can use dummy URLs for the privacy, terms and conditions, etc. URLs.
The "hassle" is as simple as just putting the a dummy URL in and registering your email address with Intuit so you can get credentials.

Google Hangouts in my website as a chat/messaging system

I currently have Google OAuth 2.0 for authentication. Next I want to be able to use google hangouts in my website so users can chat with each other, along with showing their contact list. So basically I want it to look like how it is on gmail but on my website for hangouts. Main reason for doing this, I want my users to be able use hangouts as a mode of communication. Please let me know if this is possible and provide the necessary resources, an example/demo of this working would really be helpful.
Im afraid there's no API at the moment available (nor plans for that) to access the text chat feature of Hangouts.
yes, you can. More information about google hangouts API here https://developers.google.com/+/hangouts/getting-started

Facebook Registration and Login Slim Framework PHP API

I have an api, which has a regular email password login. But I want to add facebook logins.
Do I need an app registered on facebook?
Do I need to force users to register using facebook, or just link their facebook account to their account and use it as a form of auth.
How does this tie into mobile apps? Given I am writing the API, what info does the client provide for a facebook login and what do I need to store?
There is a plethora of info out there and I am not sure where to start. I am writing an API, but I am not sure how much work my API has to do and how much the client just has to deal directly with facebook. Any specific guides tailored more toward what I am doing would be great.
A simple library called HybridAuth available that takes the pain out of building a social login feature.
Here is a very detailed tutorial from Sitepoint.
I am answering this even though this question in 1 year old, because this is visible on google search top 3 links. It might help someone who stumble upon this like I did few months ago.

Simple SSO system like Google Identity Toolkit but without the locked UI?

The Google Identity Toolkit is awesome. So clean and easy to set up! Trouble is, it forces you to use its UI, which isn't working for me. Is there anything else out there that will let the visitor click a GMAIL or YAHOO Mail icon to trigger an OpenID (or oAuth2) request, without hijacking the interface?
I've already implemented Facebook Logins in my site, which lets me customize the sign-in button however I want. For example, here's my current sign-in menu (with PHP/AJAX/MySQL site authentication for those who don't want to use their Facebook/etc. account to sign in):
Clicking FACEBOOK triggers the Facebook JS SDK for the login. Simple enough. I just want a GMAIL logo and YAHOO logo below it.
Any suggestions?
If you want to avoid the UI of a high level library, you're going to have to use a lower level library. In particular, you're going to need an OAuth 2 library. There's not that many of them (surprisingly), but your best bet is likely going to be the one authored by google: http://code.google.com/p/google-api-php-client/wiki/OAuth2
If you're looking for a solution that allows you to leverage all of the APIs for the major ID providers, you might want to test out Janrain Engage.
Here's a quick lowdown on our Engage API endpoints (specifically, auth_info), for social authentication:
http://developers.janrain.com/documentation/api/#Engage
You can have complete control over the UI and display just Google and Yahoo.
http://janrain.com/products/engage/ (for marketing-ese)

Sending Facebook messages through their API - possible?

I'm building a web app for a client where members of general public can create an account. Client would like to be able to use my app to send Facebook messages to those members.
Note that my app is a standard LAMP site and NOT a facebook application, nor is there the desire to create one; delivering messages to members' FB inbox is the only goal.
Is this possible, using the FB API or any other way?
In short the answer is no. Facebook do not give you the ability to do this to prevent spam. You could post to all of your user's feeds however?
What you would need to do is:
Register facebook app to get access to FB API. You don't need to have actual facebook app, just use received API key on your standalone site.
Create authentication process on your site so users would be able to connect with your site through facebook.
Ask users for additional extended permissions during authentication to access their email, as it is not something that could be accessed without user's explicit permission.
That's the bare minimum for this task.

Categories