2012-04-05 3 views
16

Für Forschungszwecke muss ich alle Pinnwand der Facebook-Seite der Europäischen Kommission bekommen. Ich versuchte es über diesen Link, aber ich konnte keinen Zugang bekommen: http://graph.facebook.com/EuropeanCommission/postsWie alle Pinnwand einer bestimmten Facebook-Seite zu sehen/zu bekommen

Gibt es eine Chance, dass ich eine Liste aller jemals von der Kommission veröffentlichten Beiträge bekommen kann? Oder muss ich sie manuell von der Timeline kopieren und einfügen? Kommentare werden nicht benötigt.

+0

Wenn Sie Kopie-Einfügen sind, nicht über die Zeitleiste verwenden, anstatt Hängen Sie "/ allactivity" an die Seiten-URL an. Dadurch werden Ihnen alle Posts angezeigt, im Gegensatz zur Zeitleiste, die über EdgeRank gefiltert wird. – yoyo

Antwort

24

ich in dem API-Explorer-Tool gerade versucht, und ich habe die Liste der Beiträge mit Paginierung Links zu:

http://developers.facebook.com/tools/explorer?method=GET&path=EuropeanCommission%2Fposts

{ 
    "data": [ 
    { 
     "id": "107898832590939_396059463745799", 
     "from": { 
     "name": "European Commission", 
     "category": "Government organization", 
     "id": "107898832590939" 
     }, 
     "picture": "http://photos-f.ak.fbcdn.net/hphotos-ak-prn1/523856_348222705225216_107898832590939_963377_101027267_s.jpg", 
     "link": "http://www.facebook.com/notes/european-commission/news-update-2-4-march-2012-by-elections-myanmar-conviasa-added-to-eu-blacklist-v/396059463745799", 
     "name": "News update 2-4 March 2012: By-elections Myanmar, Conviasa added to EU blacklist, vehicle registration easier and more.", 
     "description": "\nMonday 2 April: Catherine Ashton congratulates the Government and people of Myanmar on the conduct of the by-elections\n \n\nMyanmar – Pagodas in Bagan\n \n...", 
     "icon": "http://static.ak.fbcdn.net/rsrc.php/v1/yY/r/1gBp2bDGEuh.gif", 
     "actions": [ 
     { 
      "name": "Comment", 
      "link": "http://www.facebook.com/107898832590939/posts/396059463745799" 
     }, 
     { 
      "name": "Like", 
      "link": "http://www.facebook.com/107898832590939/posts/396059463745799" 
     } 
     ], 
     "type": "link", 
     "application": { 
     "name": "Notes", 
     "id": "2347471856" 
     }, 
     "created_time": "2012-04-04T13:06:58+0000", 
     "updated_time": "2012-04-05T07:54:16+0000", 
     "likes": { 
     "data": [ 
      { 
      "name": "EU Law and Publications", 
      "category": "Media/news/publishing", 
      "id": "218434258171162" 
      } 
     ], 
     "count": 1 
     }, 
     "comments": { 
     "data": [ 
      { 
      "id": "107898832590939_396059463745799_5180327", 
      "from": { 
       "name": "Ivan Burrows", 
       "id": "1119361344" 
      }, 
      "message": "@ The European Parliament\n\nWhen do we get ours?\n\nIt seems you have finally managed to get an increase in something.\n\n40\u0025 increase in suicides in Greece.\n\nTheir blood is on your hands.\n\nhttp://www.bbc.co.uk/news/world-europe-17621131", 
      "created_time": "2012-04-05T07:54:16+0000" 
      } 
     ], 
     "count": 1 
     } 
    }, 
    { 
     "id": "107898832590939_424622557555230", 
     "from": { 
     "name": "European Commission", 
     "category": "Government organization", 
     "id": "107898832590939" 
     }, 
     "message": "Marie Therese Vella gets a fresh start thanks to ESF-funded training for people over 40. Have a look at how she did it. Are you planning a career change? Are you currently unemployed? Are you aware of the channels available to you to get help? http://bit.ly/HVaLXZ", 
     "picture": "http://external.ak.fbcdn.net/safe_image.php?d=AQBVJqYwG1_uazFM&w=90&h=90&url=http\u00253A\u00252F\u00252Fec.europa.eu\u00252Fesf\u00252FBlobServlet\u00253Fmode\u00253DvideoPhoto\u002526videoId\u00253D2491\u002526cnt\u00253D313333967", 
     "link": "http://bit.ly/HVaLXZ", 
     "name": "Funding - Getting a fresh start", 
     "caption": "ec.europa.eu", 
     "icon": "http://static.ak.fbcdn.net/rsrc.php/v1/yD/r/aS8ecmYRys0.gif", 
     "actions": [ 
     { 
      "name": "Comment", 
      "link": "http://www.facebook.com/107898832590939/posts/424622557555230" 
     }, 
     { 
      "name": "Like", 
      "link": "http://www.facebook.com/107898832590939/posts/424622557555230" 
     } 
     ], 
     "type": "link", 
     "created_time": "2012-04-04T11:32:32+0000", 
     "updated_time": "2012-04-04T12:24:45+0000", 
     "shares": { 
     "count": 11 
     }, 
     "likes": { 
     "data": [ 
      { 
      "name": "Stefanija Stoimenovska", 
      "id": "100000025178728" 
      } 
     ], 
     "count": 28 
     }, 
     "comments": { 
     "data": [ 
      { 
      "id": "107898832590939_424622557555230_5762457", 
      "from": { 
       "name": "Ehtesham Mallick", 
       "id": "100001067328472" 
      }, 
      "message": "I wish some training in Laws especially from European countries and prefer training and distance learning about Human rights under the chartered of UNO", 
      "created_time": "2012-04-04T12:24:45+0000" 
      } 
     ], 
     "count": 1 
     } 
    } 
    ], 
    "paging": { 
    "previous": "https://graph.facebook.com/EuropeanCommission/posts?limit=2&format=json&since=1333544818&__previous=1", 
    "next": "https://graph.facebook.com/EuropeanCommission/posts?limit=2&format=json&until=1333539151" 
    } 
} 
+1

Vielen Dank. Es hat auch für mich funktioniert. Das Problem ist nur, dass ich die Beiträge nur bis zum 29. März 2012 bekomme (siehe Screenshot [link] (http://kickhiv.de/api.jpg). Ich brauche alle Beiträge, seit die Kommission 2010 auf Facebook gepostet hat. Irgendeine Idee, wie man sie alle bekommt? Und eine andere Frage: Kann der API Explorer nur den Code oder auch die richtige Facebook-Seite zeigen? Vielen Dank für Ihre Hilfe! – user1315129

+2

Hier ist ein Beispiel der Verwendung der Seitenumbruch. 'EuropeanCommission/posts? format = json & limit = 25 & bis = 1330440566' Sie erhalten Artikel vom 06.02.2012 bis 28.02.2012 Bitte stellen Sie diese zweite Frage als neue Stackoverflow-Frage, danke. – DMCS

+0

es gibt mir nur zwei Tags Nachrichten und kreiere keine Bilder, keine Geschichten, nichts über mich sonst. Ich habe Scopes \t 'user_birthday',' user_about_me', 'email',' public_profile' – ImranNaqvi

Verwandte Themen