News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SA Facebook Integration

Started by SMFHacks.com Team, February 12, 2010, 01:36:11 PM

Previous topic - Next topic

Ascot

Hi there. A question
How to add Hooks?
I want to add a login button next to my quick login panel on the header of whole forum.
help please

SA™

just goto social hooks in fb admin copy the facebook login hook code

call_facebook_hook('show_facebook_login',array());

and add it in index.template.php where you want it i cant say where cos i dont know the theme you are using if you can attach the index.template.php from your theme?
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Ascot

Thanks, this is my Index.template of my custom theme.
:)

SA™

find in that file

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';


add after

call_facebook_hook('show_facebook_login',array());
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

projectnaija

i need help with creating facebook app pls help. sa site is down now

SA™

goto the creat app page

fill in app name and name space
continue to next step
verify your human
continue to next step
scoll down to
Website   I want to allow people to log in to my website using Facebook.
click it then enter your site url
then save it

then grab your app id and secret and enter this in fb admin panel on your site

do not copy and past these as it can add extra spaces in the keys wich will cause the mod not to function prperly

that should get you up and running as this is how i do it with my dev site
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

projectnaija

Thank u mate, can i pm u if i need more info?

Ascot

Thank you. It worked perfectly :]

jaypreet

Dear Sa,

I am hosting my website on a multiple website hosting plan. and my URL is redirected, so which URL i should enter in the url option.

Thanks in advance

jayy

jaypreet

is it necessary to have a url with https or i can use http also ?

SA™

what url option?
what you mean my url is reditected?

i guess you can use http aswell as i do on sa mods
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Kindred

as far as I know, all connections to facebook must be https at this point...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SA™

oh your are right but http seems to still work
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

trekkie2444

Have you had a chance to check my issue? I sent you another PM.

~DS~

I am going to active ironing out any bugs I encounter with SA...
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

projectnaija

pls someone tell me how to create fb apps for sa mod

~DS~

"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

nend

#2017
Quote from: Kindred on November 19, 2011, 04:39:34 PM
as far as I know, all connections to facebook must be https at this point...

It matters how they interact with members, canvas requires https, these are Facebook apps. Other services that work externally from FB do not.

Server to server also needs https(ssl wrappers), this is different from https on the website and really matters on the host.

*edited, didn't make any sense, hope that is clearer. lol.

jaypreet

Dear Sa,

Thanks for the beautiful mod, I was able to use it with http.

but I encountered one small issue, the moment i use facebook connect button it takes me to face book page where in I have to use my facebook user id and password and then it takes back me to my forum where i have to fill in the user details but ideally it should automatically take my facebook user name and password but i have to register again as facebook user.

Same issue with ur twitter mod to.

you can check this on my forum that is hxxp:www.allaboutphilately.com [nonactive]

thanks in advance

Jayy

SA™

it is supposed todo this you cant get the users password from facebook plus it prevent two people signing up with the same name
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Advertisement: