SA Facebook Integration

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

Previous topic - Next topic

lepard

Quote from: vbgamer45 on November 16, 2013, 12:36:28 AM
What was the erorr?

Been too long don't recall, but the smf had to be restored from backup.
Rick Lepard

Careful of the simple police

luisjanj

I installed with Facebook integration mode.
When I click recommend post appears on Facebook but no picture.
that you can display the images of a post on Facebook as in the case of YouTube videos?
in that case, maybe you should recommend button that is part of the message?
there is a button to publish part of the message of al it is not showing the image.

Kindred

images on the page are not part of this mod....
Сл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."

luisjanj

Is there a mod or another way to do it

Kindred

Сл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."

ummizu

If I unistall this mod, will I lose the users who signed up with it? Will they be able to log in with a different facebook mod later?

Kindred

no. you will not lose users...

however, it is unlikely that they will be able to log in with a different mod later
Сл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."

sneijder23

Hello, I have a problem with the default avatar to register with facebook, stem image appears, someone has the solution to fix this possible? I've seen several forum users have this problem but have not found the solution :/ Thanks :)

bilbo32

Hi, I need to make it publish to a page I manage rather than my own FB profile?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

bilbo32

Ah, good. Just it's not entirely clear how to. I've tried putting the FB page ID into the user ID, but no dice :-\

Kindred

It sets to either a page or a profile. You have to pick you the profile ID for the page ID but they don't go into the same spot. There are two different fields.
Сл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."

bilbo32

Oops, outdated version, sorry  :-X

sneijder23

Can anyone help :(

Quote from: sneijder23 on December 27, 2013, 06:07:17 AM
Hello, I have a problem with the default avatar to register with facebook, stem image appears, someone has the solution to fix this possible? I've seen several forum users have this problem but have not found the solution :/ Thanks :)

bilbo32

I'm not entirely sure I understand what your problem is exactly, AFAIK, the default avatar remains the default avatar, and unless your members choose to import their FB profile pic as one the existing SMF user profile setting remain in effect. Perhaps if you explain your problem in more detail, someone might be able to advise.

sneijder23

When a user registers with facebook an error in your avatar, explained in more detail here (and pictures) the problem

http://www.simplemachines.org/community/index.php?topic=365503.msg3524680#msg3524680

bilbo32

Look for the loadMemberContext function in Sources/Load.php and see if you can find this -
'avatar' => array(
'name' => $profile['avatar'],
'image' => $profile['avatar'] == '' ? ($profile['id_attach'] > 0 ? '<img class="avatar" src="' . (empty($profile['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $profile['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $profile['filename']) . '" alt="" />' : '') : (stristr($profile['avatar'], 'http://') ? '<img class="avatar" src="' . $profile['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" />' : '<img class="avatar" src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($profile['avatar']) . '" alt="" />'),
'href' => $profile['avatar'] == '' ? ($profile['id_attach'] > 0 ? (empty($profile['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $profile['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $profile['filename']) : '') : (stristr($profile['avatar'], 'http://') ? $profile['avatar'] : $modSettings['avatar_url'] . '/' . $profile['avatar']),
'url' => $profile['avatar'] == '' ? '' : (stristr($profile['avatar'], 'http://') ? $profile['avatar'] : $modSettings['avatar_url'] . '/' . $profile['avatar'])
),


If what's in your Load.php file isn't that, then it probably means you've got some other mod or other that's affecting how empty avatar fields are handled. AFAIK, it's not something that's affected by this mod as such. Members who sign up using FB on my forum are still served the default avatar since that's the way an empty avatar field is handled.

sneijder23

It appears the same...
I uninstalled the mod default avatar but still the same error
In my source code this line appears, I can edit it to display a default image to record and fix the problem?

Quote<img class="avatar" src="http://mysite.com/avatars/''" alt="" /><br />

Change to:

Quote<img class="avatar" src="http://mysite.com/avatars/default.png" alt="default avatar" /><br />

itsisme

Hai there,

Just a small question I have SMF with some mods installed and all works great also with the SA Facebook mod the only item I see is that if I log in using the Facebook link the Registration Agreement pops up only ARRAY if I use only the SMF registration this shows up ok.

Who can point me to the proper solution? Checked the error log etc not no clous found.

The only way to get it to work for me is :
//                              if (file_exists($boarddir . '/agreement.' . $user_info['language'] . '.txt'))
//                      $context['agreement'] = parse_bbc(fetch_web_data($boardurl . '/agreement.' . $user_info['language'] . '.txt'), true, 'agreement_' . $user_info['language']);
//                  elseif (file_exists($boarddir . '/agreement.txt'))
//                      $context['agreement'] = parse_bbc(fetch_web_data($boardurl . '/agreement.txt'), true, 'agreement');
//                  else
//                      $context['agreement'] = '';
==>>                $context['agreement'] = parse_bbc(file_get_contents($boarddir . '/agreement.txt'), true, 'agreement');


Added the last line and remmed out the rest..

After that I tested:

                                if (file_exists($boarddir . '/agreement.' . $user_info['language'] . '.txt'))
                        $context['agreement'] = parse_bbc(file_get_contents($boarddir . '/agreement.' . $user_info['language'] . '.txt'), true, 'agreement_' . $user_info['language']);
                    elseif (file_exists($boarddir . '/agreement.txt'))
                        $context['agreement'] = parse_bbc(file_get_contents($boarddir . '/agreement.txt'), true, 'agreement');
                    else
                        $context['agreement'] = '';


This did the trick also...... $boarddir and $boardurl what's the difference?

Also originally it takes long to load with the added changes the agreement text pops up immediately. (a bit longer with the second option)

Looks it can not read that agreement value otherwise for my config.

Chrs..

Bruno36

Hello!

When a new member joins with facebook it is redirected to a blank page with the link
http://www.scooter-chinois-4t.com/board/index.php?action=facebookintegrate;area=auto;agree#_=_
Bruno36 the French
SMF 2.0.9

Advertisement: