YAFLogo

JP
  • JP
  • 100% (Exalted)
  • YAF Leader Topic Starter
12 years ago
Thought I'd start a topic where we can maybe get a final result of the steps needed to integrate YAF & Facebook in proper way.

Have read some tips like:

"You have to be a Facebook developer to get the proper keys for it"...

"You need to create a Facebook App to use this new feature"...

Since I'm a plain dumbass trying to implement this, I need some kind of 1-2-3 set of instructions...

1 - Have tried to become a "Facebook developer", but no success yet... Step 1 still needed...

2 - Have no idea about how to create an integration app...

3 - Would like to know how to do 1 & 2...

Any structured explanatory tips & pointers are appreciated to get this new 1.9.6 feature to work...


He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
Sponsor
Dr-Hack
  • Dr-Hack
  • 100% (Exalted)
  • YAF All-the-Time
12 years ago
I think a Good Topic you started

Well to get the Facebook API and secret key ..we can do the following.

https://developers.facebook.com/apps 

2. If its the first time it will ask for "Allow" like any other app on facebook.. just do that.

3. on right top you will see a "Create new App" press that "

4, Enter any Valid "App Display Name" and "App Namespace" (it just doesnt matter what it is .. u can enter something to remember yourself in future that u used this particular apps api key etc)

5. Press "Continue"

6. I think you can see boths the Keys now ? ;)

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago
Everything you need to know can be found on the Facebook Developer Portal (Of Course you need an FaceBook Account)

https://developers.facebook.com/apps/ 

- Click on "Create New App"

- Enter the App Display Name "mydomain.com"

- After you app is created modify the Basic Settings add the App Domain means your forum url and select the checkbox "I want people to log in to my website using Facebook."

- on that Page you also find the app id and app secret which are needed for yaf.

The App id needs to be entered in the app.config in yaf

<add key="YAF.FacebookAPIKey" value="XXXX" />

and the app secret

<add key="YAF.FacebookSecretKey" value="XXXX" />
JP
  • JP
  • 100% (Exalted)
  • YAF Leader Topic Starter
12 years ago
Thanks, guys! 👍

Got as far a seeing the "Create app" button...

Will try this tomorrow... And probably ask more detailed questions...😁


He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
f0zzyNUE
12 years ago
have created the facebook app, entered the keys to app.config and enabled single sign on in host settings. i also added the numeric facebook-id in my profile.

now i have a new button on the logon-form - the facebook authentication window opens. i press the button, the window is closed but nothing happens in my browser window. I am not logged on. when clicking on the "log on via facebook" button again the popup opens and closes immediately...

no clue what is happening ...

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

have created the facebook app, entered the keys to app.config and enabled single sign on in host settings. i also added the numeric facebook-id in my profile.

now i have a new button on the logon-form - the facebook authentication window opens. i press the button, the window is closed but nothing happens in my browser window. I am not logged on. when clicking on the "log on via facebook" button again the popup opens and closes immediately...

no clue what is happening ...

Originally Posted by: f0zzyNUE 

Which browser did you use? Are there any javascript errors?

f0zzyNUE
12 years ago

have created the facebook app, entered the keys to app.config and enabled single sign on in host settings. i also added the numeric facebook-id in my profile.

now i have a new button on the logon-form - the facebook authentication window opens. i press the button, the window is closed but nothing happens in my browser window. I am not logged on. when clicking on the "log on via facebook" button again the popup opens and closes immediately...

no clue what is happening ...

Originally Posted by: tha_watcha 

Which browser did you use? Are there any javascript errors?

Originally Posted by: f0zzyNUE 

safari 5.1.1 on mac - I did not get any obvious javascript errors, but I can try again with switching on the Javascript Console ...

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

have created the facebook app, entered the keys to app.config and enabled single sign on in host settings. i also added the numeric facebook-id in my profile.

now i have a new button on the logon-form - the facebook authentication window opens. i press the button, the window is closed but nothing happens in my browser window. I am not logged on. when clicking on the "log on via facebook" button again the popup opens and closes immediately...

no clue what is happening ...

Originally Posted by: f0zzyNUE 

Which browser did you use? Are there any javascript errors?

Originally Posted by: tha_watcha 

safari 5.1.1 on mac - I did not get any obvious javascript errors, but I can try again with switching on the Javascript Console ...

Originally Posted by: f0zzyNUE 

It works for me with Safari on Windows. The Callback from the FB Login Window is done trough Ajax when there is something wrong it should be visible in the js console

f0zzyNUE
12 years ago
please find the log of the javascript error console attached. it contains the log of two unsuccessful tries to logon.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

please find the log of the javascript error console attached. it contains the log of two unsuccessful tries to logon.

Originally Posted by: f0zzyNUE 

Fixed in repository, if you want to fix it (without changing the source) add a Hometown Location to your Facebook profile on facebook

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago
I created a new Page on the Documentation about how to setup Facebook in YAF

http://yafnet.codeplex.com/wikipage?title=Facebook%20Integration 

(Documentation is WORK IN PROGRESS)

f0zzyNUE
12 years ago

please find the log of the javascript error console attached. it contains the log of two unsuccessful tries to logon.

Originally Posted by: tha_watcha 

Fixed in repository, if you want to fix it (without changing the source) add a Hometown Location to your Facebook profile on facebook

Originally Posted by: f0zzyNUE 

the strange thing is - I have a hometown configured in facebook. one of the few personal data I provide within that platform :?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

please find the log of the javascript error console attached. it contains the log of two unsuccessful tries to logon.

Originally Posted by: f0zzyNUE 

Fixed in repository, if you want to fix it (without changing the source) add a Hometown Location to your Facebook profile on facebook

Originally Posted by: tha_watcha 

the strange thing is - I have a hometown configured in facebook. one of the few personal data I provide within that platform :?

Originally Posted by: f0zzyNUE 

Are you shure i dont See it on your about Page?

squirrel
12 years ago

please find the log of the javascript error console attached. it contains the log of two unsuccessful tries to logon.

Originally Posted by: tha_watcha 

Fixed in repository, if you want to fix it (without changing the source) add a Hometown Location to your Facebook profile on facebook

Originally Posted by: f0zzyNUE 

the strange thing is - I have a hometown configured in facebook. one of the few personal data I provide within that platform :?

Originally Posted by: tha_watcha 

Are you shure i dont See it on your about Page?

Originally Posted by: f0zzyNUE 

If the Facebook profile has options hidden from the general public (ie: Display to 'me' only, or Display to 'friends' only), they may not be ported to third party applications. Hope this helps!


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

please find the log of the javascript error console attached. it contains the log of two unsuccessful tries to logon.

Originally Posted by: squirrel 

Fixed in repository, if you want to fix it (without changing the source) add a Hometown Location to your Facebook profile on facebook

Originally Posted by: tha_watcha 

the strange thing is - I have a hometown configured in facebook. one of the few personal data I provide within that platform :?

Originally Posted by: f0zzyNUE 

Are you shure i dont See it on your about Page?

Originally Posted by: tha_watcha 

If the Facebook profile has options hidden from the general public (ie: Display to 'me' only, or Display to 'friends' only), they may not be ported to third party applications. Hope this helps!

Originally Posted by: f0zzyNUE 

That was the problem you can get that information when the permission are set correctly, fixed now in repository.