JP
  •  JP
  • 100% (Exalted)
  • YAF Leader Topic Starter
2012-02-04T21:01:38Z
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
2012-02-04T21:27:53Z
I think a Good Topic you started
Well to get the Facebook API and secret key ..we can do the following.

1. Open 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
2012-02-04T21:32:51Z
Everything you need to know can be found on the Facebook Developer Portal (Of Course you need an FaceBook Account)

- Go to 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" />

UserPostedImage
JP
  •  JP
  • 100% (Exalted)
  • YAF Leader Topic Starter
2012-02-04T21:44:26Z
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
2012-02-10T19:49:46Z
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
2012-02-10T20:33:44Z
Originally Posted by: f0zzyNUE 

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 ...



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

UserPostedImage
f0zzyNUE
2012-02-11T08:00:07Z
Originally Posted by: tha_watcha 

Originally Posted by: f0zzyNUE 

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 ...



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



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
2012-02-11T08:27:24Z
Originally Posted by: f0zzyNUE 

Originally Posted by: tha_watcha 

Originally Posted by: f0zzyNUE 

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 ...



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



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 ...



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

UserPostedImage
f0zzyNUE
2012-02-11T12:03:59Z
please find the log of the javascript error console attached. it contains the log of two unsuccessful tries to logon.

f0zzyNUE attached the following image(s):
tha_watcha
2012-02-11T16:27:00Z
Originally Posted by: f0zzyNUE 

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




Fixed in repository, if you want to fix it (without changing the source) add a Hometown Location to your Facebook profile on facebook
UserPostedImage
tha_watcha
2012-02-11T17:34:23Z
I created a new Page on the Documentation about how to setup Facebook in YAF

http://yafnet.codeplex.c...e=Facebook%20Integration 

(Documentation is WORK IN PROGRESS)
UserPostedImage
f0zzyNUE
2012-02-11T22:26:22Z
Originally Posted by: tha_watcha 

Originally Posted by: f0zzyNUE 

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




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




the strange thing is - I have a hometown configured in facebook. one of the few personal data I provide within that platform :?
tha_watcha
2012-02-11T22:53:45Z
Originally Posted by: f0zzyNUE 

Originally Posted by: tha_watcha 

Originally Posted by: f0zzyNUE 

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




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




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



Are you shure i dont See it on your about Page?
UserPostedImage
squirrel
2012-02-12T02:57:02Z
Originally Posted by: tha_watcha 

Originally Posted by: f0zzyNUE 

Originally Posted by: tha_watcha 

Originally Posted by: f0zzyNUE 

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




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




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



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



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
2012-02-12T07:03:06Z
Originally Posted by: squirrel 

Originally Posted by: tha_watcha 

Originally Posted by: f0zzyNUE 

Originally Posted by: tha_watcha 

Originally Posted by: f0zzyNUE 

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




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




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



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



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!



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

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved