My first widget for wordpress.
I was looking for a wordpress widget to display a fan page events on the website
but actually couldn’t find one.
So I made one.
You can download it from: http://wordpress.org/extend/plugins/facebook-events-widget/
Here is a screenshot:
Hi! Just wanted to say thanks for coming up with the widget – exactly what I was looking for! I am having a problem, however, that I am hoping you can help me with.
I have the right app id, page id, secret, etc. since they work for another facebook plugin, but I am not retrieving any events from the facebook page (not a profile, but a page).
I really think I am successfully connecting to facebook without any problem as there are no errors appearing in the container (which did happen when I pasted the wrong app secret).
The Facebook page I am trying to pull events from only has 1 or 2 events, and they are in the future.
Any thoughts? I am using v3.2.1 of wordpress.
Thanks again for the effort / widget!
can you tell me the website?
maybe its there, just not visible.
any errors in your http server log or php error log?
http://www.hhptatest.dankirs10w.net/
I also thought it might not be visible so I changed colors, container height, changed the settings for auto / inherit, even changed the Theme.
So I turned on debug mode – and am getting an error now – you can still see it at top of website page:
Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /home/dankirs10w/hhptatest.dankirs10w.net/wp-content/plugins/facebook-events-widget/facebook-events-widget.php on line 144
I tried deleting the”invalid character” – the ‘\’ – which got rid of the error, but still no Facebook events.
Thanks again for the help and cool widget !
I emailed you a new php file to try.
please let me know if it fixed your problem.
Hi, great Idea … but i canยดt install it … when i want to aktivate it : Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /var/www/vhosts/xxxxxxxx.de /httpdocs/wordpress/wp-content/plugins/facebook-events-widget.php on line 145
? Can you help me?
Hi thommy, I saw your email as well and sent you a modified file to replace in the plugins directory.
give it a try and let me know.
Hello,
i have the same problem as above…
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /var/www/sites/xxxx_com/xxxx.com/subdomains/www/html/wordpress/wp-content/plugins/facebook-events-widget/facebook-events-widget.php on line 145
can you also help me ?
I just updated the fix to wordpress.org few minutes ago.
download version 1.0.1 and it should fix your issue.
Hey ๐
thank you… problem solved!
but one question more:
it is possible, to activate the plugin on a site and not only as a sidebar widget?
right now its only a widget.
do you mean placing a tag in a page like [events] and make the events appear there?
yeah like a shortcode [events] or whatever…
I have been looking for a plugin like this for over a year! So glad you finally made one. One request that would make this twice as amazing is if you could enable a shortcode to use in pages as well, so not just the widget area. Thanks a million!
Becky
Hello,
i want to ask you, if you have made a [SHORTCUT] option..?
thank you
not yet.
I didn’t have the time to look into it yet.
Thanks for this app – but I’m having a problem… I guess I’m new to all this, and have no idea where I would find the Facebook App secret for my event?? I didn’t input anything into that field, and I’m assuming that’s why it’s not working?
Any help would be much appreciated!
Thanks
you need to create an app and then you get an app id and app secret.
to create an app go to
https://developers.facebook.com/apps
and you’ll have a button there to create a new app for your website.
you just need to supply app name and web url.
Could you please hint how to find right app id and secret for the facebook event app?
thank you
check out this video that shows you how
How to obtain a Facebook API Key
Hi! I also having a problem with the information not displaying. Can I get some help with it please?
you should describe what the problem is.
make sure you sure wordpress 3 and latest version of the plugin.
I am getting an error with this widget:
Caught exception: Protocol https not supported or disabled in libcurl
that’s a problem with your hosting. other facebook widgets works for you?
you need to ask your hosting provider about https support in libcurl and php.
Hi, I wonder if you can help me.
I am wanting to include upcoming events from a facebook fan page on my friend’s band’s website.
I have installed the app fine, and it appears as a widget, no problems there.
I have created an app for facebook, and have an app id.
BUT, how do I get that app to relate to the actual band page that I want to get the event information from? All I have is an empty facebook app.
Thank you for your time, I have already looked for an answer online.
if the fan page of the band is public you don’t actually need to do anything.
just facebook requires app id to be able to read information.
if your fan page is private you do need to allow the app for reading access.
let me know if that is the case and i’ll mail you a new copy of the widget to try.
Hello and thank you for that neat widget.
Could you please add an option (target=”_blank”) to open facebook in a new window when clicked?
Thanks
Christian
Hi – just what I was looking for BUT I’m not getting any output from the widget.
My AppID and Secret must be fine as I don’t have any auth errors. I have one past and one future event on the FB events page
http://www.facebook.com/pages/Teal/307251625956795?sk=events
any clues?
WP – 3.2.1 / Your widget ver 1.0.1
No errors specific to your plugin when I turn wp_debug to true
thanks
KB
UPDATE:
My error – problem was with the way i’d copied the page ID parameter in the widget.
thanks for the update.
i was going to ask you to check again since i didn’t find anything ๐
Hi for some reason all of the dates are correct on one line and then off by a day on the following line. It may also be helpful to note that all of the events are for one day only, however, some have it displayed as if it was a two day event(the June, 30th event at the site below)
Any idea what I can do to fix it? The page where the widget is located is below.
http://www.oceanrootsband.com/?page_id=3266
Thank you
Hi Jeff,
I visited the page and the events page and I
can’t see the problem you’re describing
I am looking for something similar … but not for a WordPress page – instead, just a regular website. Do you happen to know of any widgets already in existence that would allow me to easily create the code to add Facebook events to my website? Thanks for any help.
It depends on what your website is based on.
If it’s php then its easy to create a standalone php file from this widget.
Hi.
Thanks for the plugin, It’s Greate!
You should have a “donate me a cup of coffee” plugin on your site! I will happily donate the first cup!
Hey there,
How do i retrieve the face app id and secret id, ive tried following instructions but u just cant figure it iut ๐ can anyone help? thanks
you get it from the developers page.
Hey there,
i cant seem to get it to work…can someone provide some help
i am working with wp v 3.4.2
Latest version of events plugin 1.1.6
I am getting the following error:
“Facebook Events
Caught exception: Invalid OAuth access token signature.”
I created a app with my personal facebook id,
filled in the app id secret key and fanpage id,
Still getting the same results whats going on?
Any help with be greadly appreciated,
Thanks.
Hi,
Do you see any more errors?
Can you tell me the page id?
thanks,
Roi
I entered the Page ID for this facebook page http://www.facebook.com/rollacostamusic,
entered the secret code,and created an app and added that App ID, and the access token.Still nothing displays. you can see my website to see what your widget posted. I have not private settings everything is public. Please help
-Jake
I should also warn you. I don’t know anything PHP page, other than the CSS on it.
i dont see you use the events widget, so i dont see the error.
anyway make sure you use the right fanpage id 114147941950755.
also try to check errors from the php log file.
Will it pull events from our page if there is a over 18 event in Facebook ?
Hi Liam,
I’m not sure as I didn’t test this.
I think it will pull them as I didn’t set a filter for this.
Thanks,
Roi
Love your plugin. Been using it for years so I only have to update events in one place.
I was just updating wordpress to 4.2 and all of the plugins and then my site crashed with this error: “parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING” or ‘(‘ in /home/MYUSERNAME/public_html/MYWEBSITE/wp-content/plugins/facebook-events-widget/facebook-events-widget.php on line 46
Have to delete the plugin folder to get my site to load. I did back it up. Not much for code, but do you have any ideas? Thanks,
Not too big into code, but I was going to just dele
Looks like its not 4.2 compatible. Any plans to update? Thanks
Hi Pete,
are you using latest version 1.9.9?
I’ll be able to test this only in a few hours.
Thanks,
Roi
Not sure which version I had before the update… After I removed the plugin folder, I did try to fresh install 1.9.9, and got the same error when activating:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(‘ in /home/username/public_html/website.com/wp-content/plugins/facebook-events-widget/facebook-events-widget.php on line 46
Ok I’ll check it when I’ll be next to a computer.
For now you can try an older version that might work for you.
https://wordpress.org/plugins/facebook-events-widget/download/
Hi Pete,
The error is because you need PHP 5.4 or up.
If you can’t move to PHP 5.4 you need to go back to and older version of the plugin. v1.1.x should work.
Cpanel says I am using PHP version 5.4.38. I will try the 1.1.x though. Thanks.
Can you try this plugin that displays your php version?
https://wordpress.org/plugins/display-php-version/
You are right, this wordpress is actually Running PHP version: 5.2.17. I will contact my host to see why it is running a different version on this domain than my cpanel states. I did get version 1.1.11 running without a hitch. Thank you soo much.
Hey,
Thanks for your extremely(!) useful widget!
I am currently managing two differend WordPress pages in one WordPress-Network. After installing your widget, I first tried to activate it for the whole network; after this didn’t work, I activated it just for the first page. There, everything works just fine with no problems. When i try to activate the plugin for the 2nd page as well, WordPress is complaining about potential fatal errors:
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(‘ in [PATH]/wordpress/wp-content/plugins/facebook-events-widget/facebook-events-widget.php on line 44
Any ideas on this? As both sites have the exact same set of other plugins installed and are on the same version of WordPress, I suspect there might be an issue with this network thingy…
Thanks a lot for your help!
Hi Raphael,
The error you describe seems from php version lower than 5.3. could this be the case for the second wordpress ?
Er, yes, seems as if both pages were running on different php versions. That should not have happened – now everything works fine… Thanks nonetheless!