Facebook Javascript SDK is well-designed and ease-of-use based on well-documented developer web site. There are a couple of steps to use FB APIs, and debug the codes in local computer rather than server.
Step 1:
Setup the app on https://developers.facebook.com/apps/
Usually need fill out the following two major sections:
1) Website with Facebook Login
2) App on Facebook (Canvas URL, Secure Canvas URL)
Step 2:
Change local computer hosts file to map 127.0.0.1 to production domain URL (the one entered in step 1)
Step 3:
Access local computer using production domain, which will be pointing to local code base, and it is easy to debug.
No comments:
Post a Comment