Your link will include that, and Facebook will then warn the user. So for example, many OAuth providers ask you to spell out exactly what you want to use from the user. Along with the required crap, you will have some optional crap. You create a "special" link that includes some required crap in the URL.Your site tells the user that you're going to send them to Facebook to authenticate/connect.I'm not going to go very deep into this as OAuth has been discussed elsewhere and my focus here is to demonstrate a ColdFusion example, but at a high level, the process looks like this: Now let's talk about the OAuth process in general. For my testing I used: and clicked Save Changes. Obviously this will change to a production URL once you're done, but for testing, localhost is fine. In other words, you can enter something under localhost. You can, and probably should, use a local domain. On the next page, make note of your App ID and App Secret:Ĭlick on "Website with Facebook Login" and enter a value for your site. Users will see this when your app launches so make it familiar. You can call it whatever you want, but the name should reflect your site in some way. To begin, ensure you have access to Facebook's Developer portal () and create a new application. I typically assume that folks take my code samples here as just that - code samples - but I wanted to be more clear that this code would probably not be exactly best practices. Of course, it will run just fine with ColdFusion 10. ![]() So the code isn't exactly what I'd call up to date. Also, the person I was helping was on ColdFusion 8. Today, I'm going to share the Facebook code.īefore I begin, I want to warn folks. This week I'll be blogging each in turn in the hopes that these entries can help others. I ended up creating quick demos for Facebook, LinkedIn, and Google. Last week, for some reason, I had multiple requests for an example of ColdFusion and OAuth integration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |