mikahanninen / grav-plugin-facebook

Facebook plugin for Grav CMS https://github.com/getgrav/grav
MIT License
16 stars 12 forks source link

Does not bring Fb data from facebook page #20

Closed mustafakhalidcs closed 7 years ago

mustafakhalidcs commented 7 years ago

I've configured my facebook plugin and embedded my fb app id and secret. but the plugin does not pulling up the data from that page. Instead I am getting this text on my page {{ facebook_posts() }}

Please guide me if I am doing anyting wrong.

Best

gillesthoma commented 7 years ago

Hi, I have the same issue as mustafakhalidcs. I simply created a page and than added the shortcode to the content. Where exactly do we have to put the shortcode?

Regards, Gilles Thoma

mikahanninen commented 7 years ago

It seems that you have correct code in the page

{{ facebook_posts() }}

Can you check that your configuration contains...

  1. Post settings - Posts page ID at least
  2. Application ID and Application secret
  3. Make sure that Plugin is enabled
  4. Check if logs/grav.log file contains any errors or info related Facebook

I will try to reproduce your problem.

gillesthoma commented 7 years ago

I checked all the settings and they should be correct. Nothing in the log file. It seems that the code is not rendered as code but as simple text.

I have the basic core + admin installed. I added the facebook plugin via the integrated plugin manager.

Am I missing something?

Thanks for your help, Gilles Thoma

mikahanninen commented 7 years ago

I think I found the reason your problem, maybe. You need to make sure that you have checked option "Process Twig" in the System Configuration page or in the Advanced section of the Page where you have the shortcode.

mikahanninen commented 7 years ago

Did you get the issue fixed ?

gillesthoma commented 7 years ago

Hey Mika,

it's working now! You were right. I had to check "Process Twig" in the configuration.

Thanks alot! Cheers

mikahanninen commented 7 years ago

Excellent! I will close this issue.