Creating Facebook Application for your site

Creating a Facebook Application on Facebook gives you the opportunity to integrate your site into the core Facebook experience. All of the core Facebook technologies, such as Social Plugins, the Graph API and Platform Dialogs are available to Apps on Facebook. Creating Facebook applications is very easy, just follow the steps provided in the page and you are ready to go.

  • Login to Facebook and go to URl developers.facebook.com/apps. Once you are in Dashboard page for developer. Click “Create New App” Button.
  • On Dialog box, Fill Display name and Namespace with your site Name.
  • On next page you should see App ID and App Secret of your new application.
  • Scroll Down to enter your site URL and click Save Changes.
  • That’s it, copy your App ID and App secret and enter them where they are needed. (Eg : If you are using saaraan’s Joomla Facebook connect, you can enter this info in your Facebook Graph Parameters or Options fields in Joomla backend control panel.)

If you want to create localhost application for testing purpose, follow above guide but enter localhost URL in settings.

You may also want to customize and add information in Facebook Authentication Dialog box.

Related Articles:

Article by on November 20, 2011 Tagged under Tagged under , . If you like this article, please consider sharing it.

35 Thoughts

  1. Hi

    I have a problem whit the component, im not look a button for facebook login in module of the componente, just show text and not a butoon

    please help

    Sorry for my english

    Gelman Bruno

  2. Answer to my question:

    If I change the module position is working, so definitively it was a problem with my template.

    Good luck!

  3. I got an empty page on my site when I try to login with fb for an existing user, i.e. the email used for fb is the same linked to an ‘ordinary’ joomla-account.
    Is connecting a facebook-account with an existing joomla account possible?

  4. I need help installing this extension. I don’t understand what you mean by install. Any time I install a plugin all I down is down load it then install it. I don’t unzip it. Do I have to unzip this first then install it In parts?

    • You don’t need to unzip the file, just install Joomla extension using extension manager in your administrator page. This page only explains how you can obtain Facebook App Id and Secret for Facebook Connect Extension.

  5. I am getting the following message when a user tries to login or register:
    Facebook Says : An active access token must be used to query information about the current user.

    Can you advise me on how to remove this message.

  6. Hi there. I have a problem with your component for login with Facebook. At the back-end works great, but when you try to enter the site I get the following message: “Facebook Says :An active access token must be used to query information about the current user.
    Username is too short, or could not fetch first or last name!”

    Could you direct me where to come this error?
    Thank you.

  7. Hi there,

    I managed to login to Facebook in the backend, but when i create a module, i do not see any facebook indication on the module and the only difference i see than the standard J login form is that i see a small S linked to your web site.

    Can you please advise?

    Tnx

  8. TO: Asen, Manish
    Hello guys, I had this problem to. Try this:
    go to FTP to manage files and find components/com_fbcnt/controller.php

    find (around line 96):
    $fbuser = $facebook->getUser();
    and add this
    $access_token = $facebook->getAccessToken();
    before the line 96 or where you find $fbuser

    save and try it. Good luck

    • Thanks s2fi

      I have try, but still shows “acebook Says :An active access token must be used to query information about the current user.
      Username is too short, or could not fetch first or last name!”

      I try to fix like these is this right?

      $facebook = new Facebook(array(
      ‘appId’ => $getappid,
      ‘secret’ => $getappsec,
      ));
      $access_token = $facebook->getAccessToken();
      $fbuser = $facebook->getUser();
      if ($fbuser) {
      try {

    • please some one Help me!! i did this but it did not work!

      same error
      Facebook Says :An active access token must be used to query information about the current user.
      Username is too short, or could not fetch first or last name!

  9. I have try but still show “acebook Says :An active access token must be used to query information about the current user.
    Username is too short, or could not fetch first or last name!”

    I try to fix like these, is this right??

    $access_token = $facebook->getAccessToken();
    $fbuser = $facebook->getUser();
    if ($fbuser) {

  10. Hello,

    I have an issue. I have just installed this app and it seems to work. However, when you click on the login button, insert your facebook credentials, it seems it starts to compare the data but it take some time until the explorer, chrome and mozilla, say there is a problem since there are many redirections, so I cannot login.

    thank you

  11. Hi, trying to install this. Backend all installs and tests fine, but the buttons on the frontend are just dead and don’t do anything when clicked. Any ideas?

  12. Hello Saaraan,

    Sorry to post on this page, but I did not find a way to post a comment on the page Joomla Facebook Connect 2.4.
    I can not download Facebook Connect 2.4.
    the file did not extenson.

    Thank,
    Bertrand

  13. I have used your extension for too many sites, but in my latest I am facing this error

    Error

    Facebook Says :An active access token must be used to query information about the current user.
    Username is too short, or could not fetch first or last name!

    I do not know what to do ????
    please help

  14. Hello

    i install your extension in my sites and before some time its work perfectly but now some time its gives the error

    Like :
    Facebook Says :SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    Facebook Says :SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    Username is too short, or could not fetch first or last name!

    i also try with create another application also.

    plz give me some help how can i solve that

    Thanks
    Amrihs

  15. I can’t get it to work, after I typed in my facebook particular in the login dialog box, it does nothing.
    When I test at the backend it shows “API Error Code: 191
    API Error Description: The specified URL is not owned by the application”
    Any idea?

Leave a Comment

Get your comment picture from Gravatar.com.
Your email address will not be published. Required fields are marked *