FVCP - Facebook , Twitter and Meetup API / Widgets

Preview:

DESCRIPTION

FVCP - Facebook , Twitter and Meetup API / Widgets. This is how to use the API and widgets sample code and demos

Citation preview

What I have done What I have done with Facebook, with Facebook, Twiter and Meetup Twiter and Meetup API /WidgetsAPI /Widgets

Presented byPete DuMelle PD Design, Inc

Brought to you by Fox Valley Computing Professionals

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Page Widget

Twitter ApplicationPull your Twitter to your Web site

Name Tag generatorEvent look up

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Page Widget

Fan Page WidgetFan Page Widget

What is a Facebook page? Make a pageUse the widget generator Cut and past the code to your

page

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Make a Page Make a Page

1. Log on to Facebook2. Click on Advertising

3. Click on Page

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Use the WidgetUse the Widget

1. Log on to Facebook Page2. Click on Add Fan Box to your

site

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Use the WidgetUse the Widget

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Use the WidgetUse the Widget

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

http://tenpathwaysofhealinglove.com/contactus.php

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

APIhttp://apiwiki.twitter.com/Twitter-API-Documentation

*150 api calls per hour

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Twitter Application

Application Application

What one place to see and post to multiple twitter accounts http://twitterapps.pddesigninc.com/

Login and get the friend feeds PHP$twitter_username = 'YOUR_USERNAME_HERE';

$twitter_password = 'YOUR_PASSWORD_HERE';

$XMLfilename = "http://$twitter_username:$twitter_password@twitter.com/statuses/friends_timeline.rss";

Login and Update your StatusPHP$twitter_username = 'YOUR_USERNAME_HERE'; $twitter_password = 'YOUR_PASSWORD_HERE';

$twitter_whatiamdoing = 'YOUR UPDATE HERE';

httpRequest('twitter.com', '/statuses/update.xml?status='.$twitter_whatiamdoing , 'POST');

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Add custom Twitter Feed to your site

feedsfeeds

Custom Examplehttp://www.pddesigninc.com/

http://www.feedforall.com/download-feedforall.htm

http://pddesigninc.com/handouts/twitterfeed.zip

Line 29 rss2htmltwitter.php $XMLfilename =

"http://twitter.com/statuses/user_timeline/16738311.rss";

Edit Twitter-template.htmlAdd include to your site<!--#include file="rss2htmltwitter.php" -->

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Add Twitter widget to your site

WidgetWidget1. Log on to twitter2. Click on Goodies

3. Click on Widgets4. Click on My Website5. Click Profile Widget6. Edit the wizard 7. Finish & Grab Code8. Cut and past code to your site

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Example http://energyrealitytheory.com/readings.php

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

APIhttp://www.meetup.com/meetup_api/

*Need api Key

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

RSVP Name look upand Event look up

Event LookupEvent Lookup<?PHP

$GroupID= “enter in Group ID”;

$apikey = “add your api did";

// this is the meetup api Event_id is the event that that you want return the Key is my api key this is call the rsvp that returns all of the info for the people that rsvp yes or maybe

$request_url = "http://api.meetup.com/events.xml/?group_urlname=".$GroupID."&key=".$apikey ;

// standard Curl

$ch = curl_init();

$timeout = 5;

curl_setopt($ch, CURLOPT_URL, $request_url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);

$data = curl_exec($ch);

curl_close($ch);

// puts the data in to $xml varable for seperation

$xml = new SimpleXMLElement($data);

?>

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Example http://meetup-api.pddesigninc.com/

RSVP LookupRSVP Lookup<?PHP

$EventID= “event ID”

$apikey = “add your api did";

// this is the meetup api Event_id is the event that that you want return the Key is my api key this is callin the rsvp that returns all of the info for the peopel that rsvped yes or maybe

$request_url = "http://api.meetup.com/rsvps.xml/?event_id=".$EventID."&key=".$apikey;

// standard Curl

$ch = curl_init();

$timeout = 5;

curl_setopt($ch, CURLOPT_URL, $request_url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);

$data = curl_exec($ch);

curl_close($ch);

// puts the data in to $xml varable for seperation

$xml = new SimpleXMLElement($data);

?>

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Example http://meetup-api.pddesigninc.com/

Pete DuMellePD Design Inc847-768-8495

pdumelle@pddesigninc.comPresentation

http://www.pddesigninc.com/BusinessBuilding.shtml

Articles

http://ezinearticles.com/?expert=Peter_DuMelle

Thank You

Fox Valley Computing Professionals