i have a project that have option to log in with facebook.
but this option only work for the admin of the site
whenever any other user want to log in the site a form will appear and ask some info. if full fill the form and click register it shows a error message.
Now i want to remove the form part from the website and want onclick login for all user. here is the link of the site
https://dev.metarank.com/
please help me to find the solution
thanks in advance
If I am not wrong to create a Facebook login button you need to create an app to obtain api keys, right?
If it is the case the problem could be the following:
After testing the login button you have to make the app publicly available by passing a review process from Facebook, and then anyone will be able to login to your website with a Facebook account.
As said: this is the process for standard apps, at the moment I am not sure at all about if it is exactly the same process for logins.
Related
Use Case: I want to create a login button for "Login with Facebook". I want this functionality to be implemented using c# or asp.net with JavaScript or with JavaScript alone.
Requirements:
1) On the click of "Login with Facebook" button a pop up asking for email address should be visible.
2) When the user enter(s) the email address then a verification email is sent to the user.
3) When the user clicks on the "Verify" button in the email, then the user gets redirected to the Home page.
4) On the home page a pop appears asking user to provide permission to access the facebook details.
5) When the user finally allows it, it gets login from his facebook account.
Can anyone provide me a explanation for the above task? Any help will be greatly appreciated. Thanks in advance.
You should just use OAuth2 and follow the recommended process by facebook. Have a look at the documentation of the facebook graph API here.
Remember to create a facebook developer account here.
If youre using ASP.NET, there is an included Facebook OAuth2 client. Have a look at this link here. Its actually pretty easy to accomplish a simple facebook login and retrieve an access-token.
I know thats alot of links but you will have to first read a bit about the whole process to understand how it works.
Hope this helps and good luck.
I am trying to create a Google Sign In workflow, the problem i have, after the button click, the modal to select the account, i get the success callback and i can access the user basic profile.
The problem is, when i refresh the site. If i run auth2.isSignedIn.get() it always return false.
To be sure my code is not the problem, i copy this example from Google
https://github.com/googleplus/gplus-quickstart-javascript/blob/master/index.html
Enter the site with Google code, login, select my account from the modal and the site display my information but when i reload the site, the session disappear.
Maybe i am missing something, how we can persist the session so the user don't have to login every time we refresh the site.
Thanks!
For this you need to implement the authentication in a server and maintain the session using cookies
You can use node, passport to achieve this. Hope this helps.
I have implemented login with google using google plus api. I have achieved the basic steps but still have some doubts which can be errors for my project in coming future or currently also.
What I have accomplished :
got google user profile info.
got email id
got the contacts of the google logged in account.
Problems and doubts I am facing are:
Once I logged in using google account on clicking a button in my website and just logout from my website,then I am unable to again login in my website by using google login button but that google login button doesnt perform any event and I am not getting any error on browser console.
Currently I have used the attribute approval: force ,till this time on clicking the login button if multiple gmail ids are logged in it ask through which id I want to login.But here I get each time the approval popup which is irritating for the user if he/she is using same id for login. So, I want to remove the approval:force ,But if i do so then as soon as my application reloads the api gets automatically called,and start fetching information.
I need it should still ask me from which account I want to login
I would like to login using my own account in conjunction with the LinkedInApi. The problem I have is that most examples I can see either use a cookie or login interface for local users login credentials. However my aim is to login with my own specific account by providing my username and password.
I can then extract the testimonials from my profile and display them on my website.
Is this possible? And if so do you have any examples of how this can be achieved?
After thinking about this for a considerable amount of time I realised that the answer is quite simple.
If you make the API call on the server side you can specify the credentials. For example in an MVC application you might make the call on the controller action method.
If you want to allow users to login using LinkedIn you should first create an app in LinkedIn from the below link
https://www.linkedin.com/developer/apps.
Then Add LinkedIn login button from this Url
https://developer.linkedin.com/docs/signin-with-linkedin
Below is the link you will find the complete solution.
http://www.c-sharpcorner.com/UploadFile/145c93/sign-up-users-using-linkedin-and-save-users-detail/
I am not promoting the article, just providing the link where you will get the complete solution.
I'm making the Facebook app whit JavaScript SDK, and I need user likes permissions to make a like gate. When I go to my app for the first time I get the popup whit permissions and big red alert: "The following permissions have not been approved for use and are not being shown to people using your app: user_likes " When I submit my permissions for approvement they reject me... Is there another way to make a like gate?
If you're having a Page Tab App, then use the signed_request data. If not then you'll need the permission to be able to access the User's likes.
Have a look at my answer here: perl Facebook::Graph API check if user likes page