Advertisement:

Author Topic: Adding the code  (Read 2155 times)

suv100

  • Newbie
  • *
  • Posts: 9
Adding the code
« on: February 15, 2014, 06:21:52 pm »
Hi
  I'm using Osclass application available at godaddy.com. How do I paste the fb connect code in my website?

calinbehtuk

  • Sr. Member
  • ****
  • Posts: 450
Re: Adding the code
« Reply #1 on: February 15, 2014, 06:56:37 pm »
You have to edit the theme you use. And enter the code in the file that you want to appear.

strata

  • Sr. Member
  • ****
  • Posts: 411
  • Always good, always...
Re: Adding the code
« Reply #2 on: February 16, 2014, 04:24:41 am »
If you want the facebook appear on home page, open your main.php file, and if you want it appear on detail ads open your item.php under your themes folder

suv100

  • Newbie
  • *
  • Posts: 9
Re: Adding the code
« Reply #3 on: February 24, 2014, 09:39:35 pm »
Thanks for the reply. But can someone give me a step by step instruction on entering the code in the main.php file? I want the connect button to appear near login.
Thanks.

suv100

  • Newbie
  • *
  • Posts: 9
Re: Adding the code
« Reply #4 on: February 25, 2014, 10:28:17 am »
Ok, I was able to paste the code according to the directions I got from another thread, but I have another problem. Clicking on the 'login with facebook' link returns a blank page.

This is the link I get:

https://www.facebook.com/dialog/oauth?client_id=14039475165302&redirect_uri=http%3A%2F%2Fwww.example.com%2F&state=03668e4548b17b7a0a502331e43d41c7&scope=email
« Last Edit: February 25, 2014, 11:19:11 am by suv100 »

calinbehtuk

  • Sr. Member
  • ****
  • Posts: 450
Re: Adding the code
« Reply #5 on: February 25, 2014, 02:36:16 pm »
Your App id is wrong. Check if entered correctly.

suv100

  • Newbie
  • *
  • Posts: 9
Re: Adding the code
« Reply #6 on: February 25, 2014, 04:58:29 pm »
Yes, the app ID is missing two digits but even with the correct ID I get a blank page.

After fiddling with some facebook app settings, now I get the following message:

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
« Last Edit: February 25, 2014, 06:01:13 pm by suv100 »

suv100

  • Newbie
  • *
  • Posts: 9
Re: Adding the code
« Reply #7 on: February 25, 2014, 06:20:46 pm »
Solved. I had failed to add the platform in developer basic settings. Now its working fine.