Search Google

Wednesday 2 July 2014

login authentication script and other script




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

  1. Open in a new window the Google Developers Console.
  2. Click Create project.google1
  3. Choose name and create.
  4. Then goto, Api->Credentials->Create New Client IDgoogle2
  5. 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
  6. Click Create Client ID google3
  7. Go to http://yourdomain.com/oc-panel/social/index
  8. Set Google = TRUE
  9. Fill Id = Client ID as appears at google page.
  10. Fill Secret = Client secret as in google.
  11. Click Update in the bottom of the page.
  12. Logout
  13. Go to login, Google should appear there.
  14. Test!

How to enable Facebook login (might change depending on facebook)

  1. Create a facebook app Here is a guide with instructions on how to do that
  2. Go to facebook developers section
  3. Go to settings > Advanced
  4. Activate “Client OAuth Login
  5. Add your domain to “Valid OAuth redirect URIs“. Site Url should be a valid Url ex: http://forums.open-classifieds.com/
    fb1
  6. Click Save Changes
  7. Go to Status & Review
  8. Answer ”Do you want to make this app and all its live features available to the general public?” with YES.
  9. Go to http://yourdomain.com/oc-panel/social/index
  10. Set Facebook = TRUE
  11. Fill Id = App ID as appears at FB page.
  12. Fill Secret = App secret as in FB.
  13. Click Update in the bottom of the page.
  14. Logout
  15. Go to login, Facebook should appear there.
  16. Test!


http://www.waystomakesite.com/2014/02/how-to-make-online-gaming-website.html#.U7Qc9kCE71U 

 http://www.waystomakesite.com/2014/04/top-5-free-contact-form-makers.html#.U7Qd3kCE71U

 

http://www.sanwebe.com/2012/08/pure-css3-tutorials-examples

http://www.sanwebe.com/2013/09/ajax-php-and-mysql-tutorials 

 

 

 



No comments:

Post a Comment