Plugin Author
Franky
(@liedekef)
Hmm … I never took paging into account. I need to check this.
Thread Starter
Joris
(@jvanhurne)
ok…i’ll be waiting for your answer. If it should not be an easy fix, could you please let me know how much time you think it will take you.
cheers!
Thread Starter
Joris
(@jvanhurne)
Hi Franky, do you already have an update for me regarding the open graph paging problem?
kind regards,
Joris
Plugin Author
Franky
(@liedekef)
Sorry, but I had a very busy weekend/week …
I’ll try this week.
Plugin Author
Franky
(@liedekef)
Btw: please do send me your page with many events, so I can try it with the explorer.
Plugin Author
Franky
(@liedekef)
For reference, this looks like something I can use (from http://stackoverflow.com/questions/8211177/facebook-php-how-do-you-use-results-paging ):
function FB_GetUserTaggedPhotos($user_id, $fields="source,id") {
$photos_data = array();
$offset = 0;
$limit = 500;
$data = $GLOBALS["facebook"]->api("/$user_id/photos?limit=$limit&offset=$offset&fields=$fields",'GET');
$photos_data = array_merge($photos_data, $data["data"]);
while(in_array("paging", $data) && array_key_exists("next", $data["paging"])) {
$offset += $limit;
$data = $GLOBALS["facebook"]->api("/$user_id/photos?limit=$limit&offset=$offset&fields=$fields",'GET');
$photos_data = array_merge($photos_data, $data["data"]);
}
return $photos_data;
}
Thread Starter
Joris
(@jvanhurne)
Hey Franky,
When using the Graph API Explorer I get a different page ID returned varying with the selected application in the dropdown-menu.
When I select – Application: Graph API Explorer – the id is 117854958547110.
When I select – Application: The app created for EME FB Import – the id is 120011001664839.
to make it even more complicated when using one of the ID Lookup tools the id i get is 100009678185060.
Anyway, only when I use 120011001664839 in EME FB IMPORTER the syncing is working, though it has the paging problem.
Let me know if you need any more info from me.
Hope to hear from you soon!
kind regards,
Joris
Plugin Author
Franky
(@liedekef)
Send me the facebook page (url) with many events, so I can try it
Thread Starter
Joris
(@jvanhurne)
Plugin Author
Franky
(@liedekef)
“Geen evenementen om weer te geven” …
Thread Starter
Joris
(@jvanhurne)
Probably, because I am not the “owner” of any of the events.
using the page name or id 117854958547110 I get an empty list of synced events as well.
however, when i use 120011001664839 as the page id, i get the confirmation list from EME FB Import that it skipped my already synced Events and Locations.
This list contains exactly the same events as the first page of the graph API returns to me when checking /me?fields=events. The events returned first are the ones with the latest dates.
If you get the importer to work with the paging of Graph API i’m quite sure that it would sync my entire list of joined events. (though this obviously might take a while)
Plugin Author
Franky
(@liedekef)
Thread Starter
Joris
(@jvanhurne)
nope sorry, not working.
I’ve been looking into the problem for myself as well, but since i’m not really a programmer, I didn’t get much wiser.
it does seem work correctly, but returns a totally empty result list.
I could send you some screenshots if you’d like.
Thread Starter
Joris
(@jvanhurne)
https://wordpress.org/plugins/facebook-events-widget/
This plugin works very well in quickly getting and displaying all fb events of my page, but lacks the control that EME offers. I think it might offer good reference…
Thread Starter
Joris
(@jvanhurne)
http://wpfbevents.com/
and another plug-in which might be usefull as a reference i hope…