post-to-facebook-page-wall-using-php-graph
http://www.sanwebe.com/2012/02/post-to-facebook-page-wall-using-php-graph
Login with Google using PHP API library
http://www.sanwebe.com/2012/11/login-with-google-api-php
Since version 2.1 it’s really easy to login using your social network account like Twiiter, Facebook, Google + , linkedin etc.. we use a 3rd party open source project called HybridAuth (awesome project).
To activate any of these social logins you need first to purchase a premium theme from our market.
How to enable Google login
- Open in a new window the Google Developers Console.
- Click Create project.
- Choose name and create.
- Then goto, Api->Credentials->Create New Client ID
- Choose Web Application.
- Authorized Javascript origins: Your site URL here. ex: http://forums.open-classifieds.com/
- Authorized redirect URI: ex: http://forums.open-classifieds.com/social/login/1?hauth.done=Google
- Click Create Client ID
- Go to http://yourdomain.com/oc-panel/social/index
- Set Google = TRUE
- Fill Id = Client ID as appears at google page.
- Fill Secret = Client secret as in google.
- Click Update in the bottom of the page.
- Logout
- Go to login, Google should appear there.
- Test!
How to enable Facebook login (might change depending on facebook)
- Create a facebook app Here is a guide with instructions on how to do that
- Go to facebook developers section
- Go to settings > Advanced
- Activate “Client OAuth Login“
- Add your domain to “Valid OAuth redirect URIs“. Site Url should be a valid Url ex: http://forums.open-classifieds.com/
- Click Save Changes
- Go to Status & Review
- Answer ”Do you want to make this app and all its live features available to the general public?” with YES.
- Go to http://yourdomain.com/oc-panel/social/index
- Set Facebook = TRUE
- Fill Id = App ID as appears at FB page.
- Fill Secret = App secret as in FB.
- Click Update in the bottom of the page.
- Logout
- Go to login, Facebook should appear there.
- Test!
No comments:
Post a Comment