Vatsal Juneja
Vatsal Juneja

Reputation: 340

How to integrate app with facebook?

I made a quiz app using wordpress using a quiz plugin so that, the work could be done easily. I do not have any knowledge about how to integrate that app that I've made with facebook. Right now I've just kept the app on my localhost.

Do I need to add some API's or something like that? I have not handled AJAX and all that before but I do have knowledge about php.

Upvotes: 1

Views: 4150

Answers (1)

Hoàng Long
Hoàng Long

Reputation: 10848

I think you should clarify a bit about how do you want your app integrate with Facebook:

1) You want your quiz application as an on-Facebook canvas page application (which seems to be the case here):

  1. Register an application on Facebook. The guide here is fairly easy to follow.
  2. Read the basics about canvas Facebook
  3. Learn about OAuth 2.0 authentication with Facebook. This step is optional since there is a good PHP library for Facebook. But I think it will saves you time afterwards.
  4. Use PHP SDK for Facebook.

2) You want to use your own website, just add "login with Facebook" function (to record high scores, for example):

You should check Facebook integration for website. It's not too different from the first case.

I just give you the starting place. If there's something that is not clear enough, feel free to drop a more detailed comment.

Upvotes: 1

Related Questions