20
What I have done What I have done with Facebook, with Facebook, Twiter and Meetup Twiter and Meetup API /Widgets API /Widgets Presented by Pete DuMelle PD Design, Inc Brought to you by Fox Valley Computing Professionals HTTP://PDDESIGNINC.COM Fox Valley Computing Professiona

FVCP - Facebook , Twitter and Meetup API / Widgets

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: FVCP - Facebook , Twitter and Meetup API / Widgets

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

Page 2: FVCP - Facebook , Twitter and Meetup API / Widgets

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Page Widget

Twitter ApplicationPull your Twitter to your Web site

Name Tag generatorEvent look up

Page 3: FVCP - Facebook , Twitter and Meetup API / Widgets

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Page Widget

Page 4: FVCP - Facebook , Twitter and Meetup API / Widgets

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

Page 5: FVCP - Facebook , Twitter and Meetup API / Widgets

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

Page 6: FVCP - Facebook , Twitter and Meetup API / Widgets

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

Page 7: FVCP - Facebook , Twitter and Meetup API / Widgets

Use the WidgetUse the Widget

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Page 8: FVCP - Facebook , Twitter and Meetup API / Widgets

Use the WidgetUse the Widget

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

http://tenpathwaysofhealinglove.com/contactus.php

Page 9: FVCP - Facebook , Twitter and Meetup API / Widgets

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

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

*150 api calls per hour

Page 10: FVCP - Facebook , Twitter and Meetup API / Widgets

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Twitter Application

Page 11: FVCP - Facebook , Twitter and Meetup API / Widgets

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:[email protected]/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

Page 12: FVCP - Facebook , Twitter and Meetup API / Widgets

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Add custom Twitter Feed to your site

Page 13: FVCP - Facebook , Twitter and Meetup API / Widgets

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

Page 14: FVCP - Facebook , Twitter and Meetup API / Widgets

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

Add Twitter widget to your site

Page 15: FVCP - Facebook , Twitter and Meetup API / Widgets

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

Page 16: FVCP - Facebook , Twitter and Meetup API / Widgets

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

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

*Need api Key

Page 17: FVCP - Facebook , Twitter and Meetup API / Widgets

HTTP://PDDESIGNINC.COM

Fox Valley Computing Professionals

RSVP Name look upand Event look up

Page 18: FVCP - Facebook , Twitter and Meetup API / Widgets

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/

Page 19: FVCP - Facebook , Twitter and Meetup API / Widgets

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/

Page 20: FVCP - Facebook , Twitter and Meetup API / Widgets

Pete DuMellePD Design Inc847-768-8495

[email protected]

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

Articles

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

Thank You

Fox Valley Computing Professionals