I've made an update to my custom Connector for Facebook that I posted several weeks ago (link to old post: http://tinyurl.com/ba2hfd). What is it? Social media is mainstream, and thus keeping track of our customers on social media sites is becoming more important. This connector helps you keep track of your customers who are on Facebook, pulling public profile information through to your contact views.
Several people had issues installing the old version. Hopefully this post will help some you get it up and running.
To Install:
1) Download the attached zip file. Upload and install with Module Loader.
2) In Admin -> Connectors -> Enable Connectors, click on the Facebook tab, drag the 'contacts' module to the 'enabled modules' section and save.
3) Create a custom field in the contacts module, called facebook_c. The connector will use this field to This field will hold the contact's Facebook ID.
4) The tricky step (workaround for a SugarCRM bug in custom connectors):
if you already have a connector enabled on the contact module:
a) open /custom/modules/Contacts/metadata/detailviewdefs.php, look for the 'displayParams' array for the 'full_name' variable.
b) there should be something that looks similar to:
add the Facebook Connector declaration:PHP Code:'displayParams' => array(
'enableConnectors' => true,
'module' => 'Contacts',
'connectors' => array (
0 => 'ext_rest_linkedin',
),
),
if you don't have any connectors enabled yet, you will need to add everything that is in the 'displayParams' array above to your 'displayParams' array.PHP Code:'displayParams' => array(
'enableConnectors' => true,
'module' => 'Contacts',
'connectors' => array (
0 => 'ext_rest_linkedin',
1 => 'ext_rest_facebook',
),
),
At this point the connector should be installed. BUT it isn't very useful until you start populating the facebook_c fields with your contacts' associated Facebook IDs.
How to add Facebook IDs:
1) Go to a contact, the Facebook logo should appear by the contacts name. If it doesn't, then the connector was not installed correctly. Post on this thread so we can help each other out.
2) Edit the contact, give the facebook_c field the value 54601110, then save. After doing this and viewing the contact, if you scroll over the Facebook icon, it should show my name and picture.
How to find a contact's Facebook ID:
1) Login to Facebook and search for the contact by email address.
2) If you find it, click on their profile.
3) In the address bar, look for the profile.php?id= and copy the number that follows it.
4) Paste the number into the corresponding contact's facebook_c field
I should be able to monitor this thread closely today, so ask questions if you can't get things working.
Thanks and sorry for the long post!
-chad


LinkBack URL
About LinkBacks



Reply With Quote




Bookmarks