News:

Wondering if this will always be free?  See why free is better.

Main Menu

SA Facebook Integration

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

Previous topic - Next topic

boazor

Quote from: boazor on August 06, 2011, 07:33:53 PM
Quote from: SA™ on August 06, 2011, 03:37:00 PM
Quote from: boazor on August 06, 2011, 03:20:50 PM
hi ,

I setup account on facebook and add the apps id and secret and when i try to use it
i get error "An error occurred with initeam. Please try again later."

any idea why?

make sure you setup the app properly this will help

http://www.sa-smf.com/community/index.php?topic=734.0

Thank you :)



Dam why i am getting ****** error

"The database value you're trying to insert does not exist: email_address"

bluejay51

To SA - Sure, I'll give it a try shortly. What I did yesterday was to just reinstall rev24 and it's working pretty good but I do like rev32 better because of it's more polished look and extra features.

I was also wondering about something...yesterday, I accidentally deleted all of the synced members who had their Facebook accounts associated with the forum. Luckily, I made a backup of the site and databases before this happened. Is there any way of using the backup to restore these members who were unsynced?. If so, how do I do this?.

I will try the code you provided and report back here with the results in a little while.

Thanks again for all your help, BJ
Community operated support group for people living with anxiety disorders.
http://www.anxietyzone.com

bluejay51

I just did a fresh install of rev32. Replaced code as suggested (but left the code you told me to replace for my Ajax Chat issue intact). Cleared all Facebook and forum cookies. Refreshed browser. Logged into forum as regular user and synced my forum account with my Facebook account.

Everything worked except that when I clicked on Facebook and Settings in my forum profile. I got the same error message that I've been getting right along as well as a new one...



Fatal error: Uncaught CurlException: 6: name lookup timed out thrown in /xxxxx/xxxxx/public_html/facebookauth/base_facebook.php on line 798

Just the simple act of clicking on my forum profile gives me this error...



Fatal error: Uncaught GraphMethodException: Unsupported get request. thrown in /xxxxx/xxxxx/public_html/facebookauth/base_facebook.php on line 1012



When I click on "Publish", I get...



Fatal error: Uncaught GraphMethodException: Unsupported get request. thrown in /xxxxx/xxxxx/public_html/facebookauth/base_facebook.php on line 1012

Hope this helps...

- BJ
Community operated support group for people living with anxiety disorders.
http://www.anxietyzone.com

SA™

QuoteFatal error: Uncaught CurlException: 6: name lookup timed out thrown in /xxxxx/xxxxx/public_html/facebookauth/base_facebook.php on line 798

This is probably the host is not given enough time to contact with facebook server

to try and solve open facebookauth/base_facebook.php

public static $CURL_OPTS = array(
    CURLOPT_CONNECTTIMEOUT => 10,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT        => 60,
    CURLOPT_USERAGENT      => 'facebook-php-3.1',
  );


Modify CURLOPT_CONNECTION to increase its value to, 30 or higher.

CURLOPT_CONNECTTIMEOUT => 30,
and test your facebook application again to see if it works.

im looking into the other errors now
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 -___-

SA™

Quote from: boazor on August 07, 2011, 05:53:21 AM
Quote from: boazor on August 06, 2011, 07:33:53 PM
Quote from: SA™ on August 06, 2011, 03:37:00 PM
Quote from: boazor on August 06, 2011, 03:20:50 PM
hi ,

I setup account on facebook and add the apps id and secret and when i try to use it
i get error "An error occurred with initeam. Please try again later."

any idea why?

make sure you setup the app properly this will help

http://www.sa-smf.com/community/index.php?topic=734.0

Thank you :)



Dam why i am getting ****** error

"The database value you're trying to insert does not exist: email_address"
seems like we can no longer get email adresses from fb api any more :(

sources/facebook/facebookhooks.php

find
$FaceBookEmail = $userInfo[0]['contact_email'];   
replace with
$FaceBookEmail = !empty($userInfo[0]['contact_email']) ? $userInfo[0]['contact_email'] : $userInfo[0]['proxied_email'];
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 -___-

bluejay51

Ok thanks SA. I'll give that a try. Still not sure what to do about this though...



I was also wondering about something...yesterday, I accidentally deleted all of the synced members who had their Facebook accounts associated with the forum. Luckily, I made a backup of the site and databases before this happened. Is there any way of using the backup to restore these members who were unsynced?. If so, how do I do this?.

Any ideas?.
Community operated support group for people living with anxiety disorders.
http://www.anxietyzone.com

boazor

i found problem after i install

"Fetching preview..."

and when i remove it this problem gon.

any reason way?

SA™

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

shorepower

Attached is a Swedish translation of rev32. Thx for a good modification SA

Ἐν οἴνῳ ἀλήθεια -- www.finewines.se

bluejay51

#1829
I've uninstalled this for now and gone back to rev24 because of the errors and other issues. It would still be nice to know how to restore all of the synced accounts that were lost due to an accident on my part (if that's possible). Perhaps some day when a patched (or new) version is released I'll give it another try but for now, I think I'll just stick with rev24 and yes, thanks for a great mod. If there is anything else you can suggest that I add or remove to fix the errors, I'd be happy to reinstall rev32 and give it another try. Just let me know.

- Thanks, BJ
Community operated support group for people living with anxiety disorders.
http://www.anxietyzone.com

SA™

ill try to relase  rev33 in a couple of days theonly real chnage will be that if there is an api error it will catch it and display the error inside the forum instead of a white page this can help with debgging aswell cos the errors will be better explained plus other fixes will be applied

i find it frustrating cos i cant replicate these errors so it only guess work on my side but if the errors are more detaild it will be easy for me to find te issues

as for your synced member im not sure on that one tbh it would just be easyer to get those people to resync
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 -___-

vrshc

i am getting an unknown error can any one explain me?

SA™

REV 34 Realsed


added try{} and catch{} FacebookApiException to catch api errors to display in fatal_error() function
fixed fetching email issues
fixed some of the aliases you requested do not exist error
fixed canvas theme supprt breking ajax stuff
updated facebook sdk to 3.1.1

the api update should fix most of the issue in rev32
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 -___-

bluejay51

You know, I have to hand it to you SA, you are very prompt when it comes to support, fixing bugs quickly and staying on top of things so kudos to you :D .

I will give this a try tomorrow and report back here with the results. From your most recent changelog, it looks like you fixed most (if not all) of the glitches and the debugging code should help quite a bit since it's difficult to reproduce the errors some of us were getting.

- BJ
Community operated support group for people living with anxiety disorders.
http://www.anxietyzone.com

bluejay51

#1834
Here is my report.

I completely uninstalled rev24 (except synced accounts). Installed rev34. Cleared all cookies. Logged into forum with a regular (non-admin) user account. The regular/non-admin user account I used is just a name I made up to test rev34 on the forum.

Clicked on "Profile". Went to Facebook>Associate account with Facebook. It worked. But when I went back to my profile and went to Facebook>Settings I got this error again...



OAuthException: (#803) Some of the aliases you requested do not exist: 1.00000761815E 14

I'm also getting this same error message when I click on the "Publish" button. However, the Ajax chat room and shoutbox work this time and I am no longer getting this error when I click on my "Profile" link in the forum.

Just curious...if I sign up on the forum using the name "user123" but my Facebook name is "John Doe" how does your mod know that "user123" on the forum is "John Doe" on Facebook and thus allow integration, publishing, likes, etc between the two accounts?.

Also, where do all of these published posts, likes, recommends, etc go when a regular user clicks on one of these buttons?. To the forum's Facebook app page?...to the user's own Facebook page?.

I'm beginning to wonder if the "alias" error has something to do with this.

- BJ
Community operated support group for people living with anxiety disorders.
http://www.anxietyzone.com

SA™

Quote from: bluejay51 on August 09, 2011, 08:27:49 AM
Just curious...if I sign up on the forum using the name "user123" but my Facebook name is "John Doe" how does your mod know that "user123" on the forum is "John Doe" on Facebook and thus allow integration, publishing, likes, etc between the two accounts?.

because when you sync your account it stores your fb name and fb id in the database

QuoteAlso, where do all of these published posts, likes, recommends, etc go when a regular user clicks on one of these buttons?. To the forum's Facebook app page?...to the user's own Facebook page?.

they goto the users fb wall not your app it pointless publishing post goin to your app but however the publiser tho auto post to facebook can goto your app or fb profile

QuoteI'm beginning to wonder if the "alias" error has something to do with this.

no it is facebook chnging there api's there depreciting some methods quicker than i can patch them :D

QuoteOAuthException: (#803) Some of the aliases you requested do not exist: 1.00000761815E 14

there is a fix for this that i know works now try the attached package
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 -___-

bluejay51

Thanks for responding, answering my questions and for patching it so quickly. I'm going to try the attached package right now and report back here again.

I'm assuming that even a non-registered forum guest (without a synced account) can still use the Publish/Like/Recommend buttons just as long as they already have a Facebook page?.

- BJ
Community operated support group for people living with anxiety disorders.
http://www.anxietyzone.com

bluejay51

Just finished installing and testing and I can report that it now works perfectly as far as I can tell. For example...

1) I can associate and disassociate my Facebook account with no errors or other issues.
2) Facebook>Settings now works without producing an error.
3) "Publish" now works without producing an error.
4) All Ajax-related issues seem to be fixed.

I haven't tested everything just yet but it's a LOT better now and everything seems to work very well. Thanks for all your hard work on this!  :D

- BJ 
Community operated support group for people living with anxiety disorders.
http://www.anxietyzone.com

Alex' Manson

can you tell me how to move the "like" and "send" buttons like this mod here?
http://custom.simplemachines.org/mods/index.php?mod=2543

Thanks..
it now shows under the linktree. i don't like it there :s

dematrix2571

I love this mod very much.  Thanks for continuing to work on this mod and making it available to us.  It just keep getting better every time.

I have technical question in regards to the amount of information that is posting to our facebook page. See below....

_______________________________
Cheatham Talk
Re: Pegram alderman, recorder resign

Re: Pegram alderman, recorder resign
http://www.cheathamtalk.com [nofollow]

Hello Donnie thank you for having
________________________________

Where can I edit the file to post more information from a post.  For example, "Hello Donnie thank you for having" is the number of character it pulls from a post and place on wall of facebook. I want to see about pulling the first 2 or 3 lines.

I hope I am making sense.

Thanks!

Advertisement: