August 10th, 2009 Pete De Mulle Twitter

711 views

Published on

Fox Valley Computing Professionals Presentation Series

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
711
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

August 10th, 2009 Pete De Mulle Twitter

  1. 1. What I have done with Facebook, Twiter and Meetup API /Widgets Presented by Pete DuMelle PD Design, Inc Brought to you by Fox Valley Computing Professionals HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals
  2. 2. HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals Page Widget Twitter Application Pull your Twitter to your Web site Name Tag generator Event look up
  3. 3. HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals Page Widget
  4. 4. Fan Page Widget <ul><li>What is a Facebook page? </li></ul><ul><li>Make a page </li></ul><ul><li>Use the widget generator </li></ul><ul><li>Cut and past the code to your page </li></ul>HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals
  5. 5. Make a Page <ul><li>Log on to Facebook </li></ul><ul><li>Click on Advertising </li></ul><ul><li>Click on Page </li></ul>HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals
  6. 6. Use the Widget <ul><li>Log on to Facebook Page </li></ul><ul><li>Click on Add Fan Box to your site </li></ul>HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals
  7. 7. Use the Widget HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals
  8. 8. Use the Widget HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals http://tenpathwaysofhealinglove.com/contactus.php
  9. 9. HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals API http://apiwiki.twitter.com/Twitter-API-Documentation *150 api calls per hour
  10. 10. HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals Twitter Application
  11. 11. Application <ul><li>What one place to see and post to multiple twitter accounts </li></ul><ul><li> http://twitterapps.pddesigninc.com/ </li></ul><ul><li>Login and get the friend feeds PHP </li></ul><ul><li>$twitter_username = 'YOUR_USERNAME_HERE'; $twitter_password = 'YOUR_PASSWORD_HERE'; </li></ul><ul><li>$XMLfilename = &quot;http://$twitter_username:$twitter_password@twitter.com/statuses/friends_timeline.rss&quot;; </li></ul><ul><li>Login and Update your StatusPHP </li></ul><ul><li>$twitter_username = 'YOUR_USERNAME_HERE'; $twitter_password = 'YOUR_PASSWORD_HERE'; </li></ul><ul><li>$twitter_whatiamdoing = 'YOUR UPDATE HERE'; </li></ul><ul><li>httpRequest('twitter.com', '/statuses/update.xml?status='.$twitter_whatiamdoing , 'POST'); </li></ul>HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals
  12. 12. HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals Add custom Twitter Feed to your site
  13. 13. feeds <ul><li>Custom Example </li></ul><ul><li>http://www.pddesigninc.com/ </li></ul><ul><li>http://www.feedforall.com/download-feedforall.htm </li></ul><ul><li>http://pddesigninc.com/handouts/twitterfeed.zip </li></ul><ul><li>Line 29 rss2htmltwitter.php </li></ul><ul><li> $XMLfilename = &quot;http://twitter.com/statuses/user_timeline/16738311.rss&quot;; </li></ul><ul><li>Edit Twitter-template.html </li></ul><ul><li>Add include to your site </li></ul><ul><li><!--#include file=&quot;rss2htmltwitter.php&quot; --> </li></ul>HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals
  14. 14. HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals Add Twitter widget to your site
  15. 15. Widget <ul><li>Log on to twitter </li></ul><ul><li>Click on Goodies </li></ul><ul><li>Click on Widgets </li></ul><ul><li>Click on My Website </li></ul><ul><li>Click Profile Widget </li></ul><ul><li>Edit the wizard </li></ul><ul><li>Finish & Grab Code </li></ul><ul><li>Cut and past code to your site </li></ul>HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals Example http://energyrealitytheory.com/readings.php
  16. 16. HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals API http://www.meetup.com/meetup_api/ *Need api Key
  17. 17. HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals RSVP Name look up and Event look up
  18. 18. Event Lookup <ul><li><?PHP </li></ul><ul><li>$GroupID= “enter in Group ID”; </li></ul><ul><li>$apikey = “add your api did&quot;; </li></ul><ul><li>// 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 </li></ul><ul><li>$request_url = &quot;http://api.meetup.com/events.xml/?group_urlname=&quot;.$GroupID.&quot;&key=&quot;.$apikey ; </li></ul><ul><li>// standard Curl </li></ul><ul><li>$ch = curl_init(); </li></ul><ul><li>$timeout = 5; </li></ul><ul><li>curl_setopt($ch, CURLOPT_URL, $request_url); </li></ul><ul><li>curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); </li></ul><ul><li>curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); </li></ul><ul><li>$data = curl_exec($ch); </li></ul><ul><li>curl_close($ch); </li></ul><ul><li>// puts the data in to $xml varable for seperation </li></ul><ul><li>$xml = new SimpleXMLElement($data); </li></ul><ul><li>?> </li></ul>HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals Example http://meetup-api.pddesigninc.com/
  19. 19. RSVP Lookup <ul><li><?PHP </li></ul><ul><li>$EventID= “event ID” </li></ul><ul><li>$apikey = “add your api did&quot;; </li></ul><ul><li>// 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 </li></ul><ul><li>$request_url = &quot;http://api.meetup.com/rsvps.xml/?event_id=&quot;.$EventID.&quot;&key=&quot;.$apikey; </li></ul><ul><li>// standard Curl </li></ul><ul><li>$ch = curl_init(); </li></ul><ul><li>$timeout = 5; </li></ul><ul><li>curl_setopt($ch, CURLOPT_URL, $request_url); </li></ul><ul><li>curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); </li></ul><ul><li>curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); </li></ul><ul><li>$data = curl_exec($ch); </li></ul><ul><li>curl_close($ch); </li></ul><ul><li>// puts the data in to $xml varable for seperation </li></ul><ul><li>$xml = new SimpleXMLElement($data); </li></ul><ul><li>?> </li></ul>HTTP://PDDESIGNINC.COM Fox Valley Computing Professionals Example http://meetup-api.pddesigninc.com/
  20. 20. <ul><li>Pete DuMelle </li></ul><ul><li>PD Design Inc </li></ul><ul><li>847-768-8495 </li></ul><ul><li>[email_address] </li></ul><ul><li>Presentation </li></ul><ul><li>http://www.pddesigninc.com/BusinessBuilding.shtml </li></ul><ul><li>Articles </li></ul><ul><li>http://ezinearticles.com/?expert=Peter_DuMelle </li></ul><ul><li>Thank You </li></ul>Fox Valley Computing Professionals

×