This topic contains 0 replies, has 1 voice, and was last updated by Kien Wiliam 6 years, 10 months ago. This post has been viewed 2124 times
Magebay Marketplace Social Login Online Document Guide
-
Document get API and APP secret for SocialLogin module
1. FACEBOOK
How to create App ID and number App Secret
Step 1: Go to website : https://developers.facebook.com/ then loginStep 2: Create a app
Step 3: Setup app
Fill Display Name, Namespace and choose Category then lick create app to create a application.
Fill capcha in the input (text in the box) then click submit
Main create application success.
Step 4: Go to Settings > Press Add FlatformEnter your website url then Save Changes
Step 5: You can get App ID and App Secret now
2. TWITTER
Get Consumer Key (API Key) and Consumer Secret (API Secret)Step 1: go to https://dev.twitter.com/ and login to create application or https://apps.twitter.com/, if you don’t have account, please register first
Step 2: Click create app
Step 3: Enter correct information to create new Application
Step 4: Go to API Keys to get API Key and secret
3. GOOGLE
Step 1: Go to https://console.developers.google.com/project to create new project(Must login first)
Step 2: Select Use Google APIs
Step 3: Select Credentials on left tab
Step 4: Select Credentials on select Add Credentials chosen Oauth 2.0 client ID after conffig consent screen
Next step to get Client ID and Client Secret
4. YAHOO
Step 1: Go to https://developer.yahoo.com/ (must login/registered first)
After logged, please select My Projects then Accept
Step 2: Create New Project
Step 3: get Consumer key and secret
Step 4: After create a new project, in tab Permissions chosse checkbox Contacts and chosse Read
5. LINKEDIN
Step 1: Go to https://developer.linkedin.com/ (must logged first)Step 2: Create new Application
Step 3: Fill information for this form
Step 4: Click to application to get API and Secret key
6. Pinterest (comming soon)
http://tijn.bo.lt/pinterest-api
Authentication
Pinterest uses OAuth2 to authenticate users. Currently
we only support user login (server side). The authentication flow consists of 3 steps:
– User authentication
– App authorization
– App authentication
User authentication ensures the user is authenticated and say who they are. App authorization involves user knowing what kind of data they will be providing the app. App authentication ensures that the user is giving their information to your app and not someone else. Once these steps are complete we issue a user access token that enables app to make requests on behalf of the user. First, you redirect the user to pinterest authentication screen.
GET1234https://pinterest.com/oauth/authorize/?client_id=145465456&redirect_uri=YOUR_REDIRECT_URI&scope=readredirect_uri = your redirect uri must match the one you used while creating your appclient_id = app idscope = read(default), read_writeRedirects to
1234567YOUR_REDIRECT_URI?code=AUTHORIZATION_CODEGET / POSThttps://api.pinterest.com/v2/oauth/access_tokenredirect_uri=YOUR_REDIRECT_URIscope=read (default and must match the one during the authorization)client_secret=CLIENT_SECRETcode=AUTHORIZATION_CODEReturns
123access_token=YOUR_ACCESS_TOKENGEThttps://api.pinterest.com/v2/me?access_token=YOUR_ACCESS_TOKENReturns the user data
1234{“username”: “yashh”,“image_url”: “http://d30opm7hsgivgh.cloudfront.net/avatars/sinverguenza-59.jpg”,“full_name”: “Yashh Nelapati”,}Thank for reading this post. you can check more information about extension on link . if you have any question about the extension. You can contact to [email protected]. We will check and support for you.
You must be logged in to reply to this topic.