CMS MADE SIMPLE FORGE

XML Made Simple

 

[#9524] Agent

avatar
Created By: Joeri (joeri210)
Date Submitted: Mon Sep 09 02:03:32 -0400 2013

Assigned To:
Version: XMLMadeSimple 0.0.1
CMSMS Version: None
Severity: Trivial
Resolution: None
State: Open
Summary:
Agent
Detailed Description:
While retrieving RSS from Facebook, I encountered that the AGENT string needs to
be set, otherwise FB just wont send anything back. So I hardcoded it in the
MCFeed, but it would be even better if we could just set it in the settings,
with maybe a default setting.

PHP code used in getFeedByUrl():
ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9');

Proof of concept:
http://www.facebook.com/feeds/page.php?format=rss20&id=YOUR_PAGE_ID

Thanks for providing the module!



History