CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviContribute Suggestions »
  • Facebook integration
Pages: [1]

Author Topic: Facebook integration  (Read 7430 times)

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Facebook integration
July 08, 2009, 08:52:48 am
We are very interested in this. Facebook is a powerful social networking tool and has been very successful at facilitating non-profit campaigns. - I see two quick paths to integration:
1. leverage the drupal facebook connect modules (http://drupal.org/project/fb or http://drupal.org/project/fbconnect )
2. Allow personal campaign users to add their page widget to facebook directly.

Thoughts?
Cross Link: http://issues.civicrm.org/jira/browse/CRM-2427

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Facebook integration
July 08, 2009, 10:43:23 am

would be great if you could follow through on either of the two proposed paths and post what/how/why you did on this topic

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

leahb

  • Guest
Re: Facebook integration
August 26, 2009, 11:15:16 am
I tried to insert the widget into our FB page by using the Static FBML application on facebook.  Apparently, this application allows you to add your own mark up language to modules in FB so you can insert your own widgets.

Didn't work for me using CiviCrm Widget - but it is an option if anyone that has more development experience and wants to toy with it.

Just throwing that out there - as this would be a great addition to have!

leahb

  • Guest
Re: Facebook integration
August 27, 2009, 06:10:51 am
A little more investigation into why the widget doesn't work.  FB cleans up whatever language placed into the FBML.  For example, when calling a .swf file, FB prefers you to use fb:swf swfsrc="http://yoursouce.swf"

I believe there are other work arounds, so the entire Civicrm widget code will have to be hacked up. 

Still working on it - will let you know when we are getting closer.

ds505

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 3
Re: Facebook integration
December 23, 2009, 11:34:16 am
Has anyone been able to make this work? I found a possible format, but could not get it to work:

<fb:swf
swfbgcolor="000000" imgstyle="border-width:3px; border-color:white;"
swfsrc='http://drupal.demo.civicrm.org/sites/drupal.demo.civicrm.org/all/modules/civicrm/packages/amfphp/gateway.php&amp;contributionPageID=4&amp;widgetID=1'
imgsrc='http://drupal.demo.civicrm.org/sites/drupal.demo.civicrm.org/all/modules/civicrm/extern/Widget/widget.swf' width='190' height='190' />

Thanks so much!
Leila

Data-Scribe(r)
http://www.datascribe.biz

selfuntitled

  • I’m new here
  • *
  • Posts: 16
  • Karma: 2
Re: Facebook integration
December 10, 2010, 02:10:17 pm
Sorry to revive this as a dead thread - I did end up getting this working and I wanted to share the results in case other people want to try this.

Here's the basic code I ended up with -

<!-- Standard wrapper div for widget-->
<div style="text-align: center; width:260px">

<!-- Facebook opening tag for SWF -->
<fb:swf

<!--The background color for the flash object CiviCRM uses default is white #FFFFFF -->
 swfbgcolor="FFFFFF"

<!--The URL of the SWF file CiviCRM uses as the widget -->
 swfsrc='https://www.mydomain.org/sites/all/modules/civicrm/extern/Widget/widget.swf'

<!--The variables that get passed to the widget to identify which donation page the widget should relate to - note the PageID may be the only think you need to change -->
 flashvars="serviceUrl=https://www.mydomain.org/sites/all/modules/civicrm/packages/amfphp/gateway.php&contributionPageID=7&widgetID=1"

<!--Facebook only loads flash after it's been clicked on, so it needs an image of the widget to provide before someone clicks. I used the "about" tab as it doesn't get out of date.-->
 imgsrc='http://www.mydomain.org/files/widget.jpg'

<!--Standard flash variables for quality-->
 quality='high'

<!--Standard flash variables for dimensions -->
 width='220'
 height='220'

</fb:swf>
</div>

The biggest weakness that I see as not easily avoidable - facebook only loads SWF files after the visitor clicks on an image placeholder for the file.  You can specify an image of the widget as a placeholder, but, as soon as a new gift comes in, that image becomes out of date. 
You can specify the about tab, but as I did, but that kind of defeats the purpose of the widget. 
Best option may be a button - see the status of our campaign, or something to that effect, that loads the widget.   

May be of use to others - the meger documentation on flash in FBML. 
http://developers.facebook.com/docs/reference/fbml/swf

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Facebook integration
December 28, 2010, 05:35:36 pm
We tried to follow these instructions, but were not successful in getting the widget or image to load.  the static FBML app doesn't show any errors so its been hard to debug. we may abandon since we can't put it in a FB Box, but rather only as a tab.  what would be really nice if someone were motivated would be a FB app that that polls the site via API and posts contribution updates to the "wall".  actually, if Civi could generate new contribution messages via RSS and include the campaign total, a tool like social RSS could publish to the wall.  that would be a powerful marketing tool ...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviContribute Suggestions »
  • Facebook integration

This forum was archived on 2017-11-26.