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.
Related
I have a question please guide.
I want to know from which social account user click on my sites link.
For example: I shared my site links on Facebook and WhatsApp and now users are coming from these links. I want to know if user click my link from Facebook or WhatsApp, without passing any query parameters to link.
I tried http_referrer
In PHP, you can use the $_SERVER['HTTP_REFERER'] to know where the user came from.
I've been trying to search for ways via app script and add-ons that allow us to customize a google form's confirmation page once the user clicks on the submit button. So far, resources have been mentioned that this isn't possible, but the latest reference I saw was in 2014, so not sure if there were any updates already.
I'm good if it's an add-on as well, but I do prefer script so that I can learn and avoid paying.
Alternatively, is it possible to redirect a user to a custom URL based on his/her response once s/he clicks on submit?
Hoping for your guidance on this. Thanks!
Maybe Google Chat is the answer you've been looking for
I believe that it is impossible because we have no access to the that instance of the form. Once the form is submitted we could send the user any email but I think that's about it.
However according to my research you could use google apps script to set up an interactive chat message. Here's some addition information for setting up a webhook for Google Chat. Let me know if you have any success with this suggestion.
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.
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 have built a simple webpage in PHP. I want to tell if users like my page (I placed a like button on it). It is not a Facebook app. I have seen this, but don't know how to use it with PHP. I don't know JavaScript at all. I tried pasting the code listed at the link into my page, but it didn't do anything useful.
A PHP solution would be preferable. I don't want to build a Facebook app, I just want to know if the Like button has been pressed.
Any help would be appreciated. Thanks!
Edit: Here's the link to my website, per answerer request: testingground.comyr.com
Those Edge events are only usable to detect if the user clicked the Like Button right now, but you cannot check if he already liked your page. That is only possible with an App, and user authorization with the "user_likes" permission.
More information:
Check if logged in user has liked my Facebook Page
Check if user liked page or not
Why don't you use the Facebook developer reference documentation?
Without an API Access, I think there is no possibility to do that.
How should you have access the private token what a random user liked?