简体   繁体   中英

Exclude path from Recommendations Box

Is there any way to exclude certain directories and/or files on my site from being included in the Facebook Recommendation Box? I don't want to prevent those pages from being Liked or Recommended; I just don't want them showing up in the Recommendation Box elsewhere on my site.

Per https://developers.facebook.com/docs/reference/plugins/recommendations/ , cross domain aggregations don't work currently.
So, you might consider including those directories and files that you wish to include under a different sub-domain, and only call that path.
For eg - all pages that need to be included in the Recommendation box - include.YOUR-SITE.com and pages you wish to exclude be hosted directly under - YOUR-SITE.com.
And when you invoke the fb:recommendations tag, specify the site as - site="include.YOUR-SITE.com"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM