Reputation: 105
Hi Happy New Year and thanks in advance for your time..
So im using Facebook javascript SDK to display my FB page on my site. Its showing up as expected. Good.
Now I want to alter the Fb page title after it has loaded in my site. I tried getElementByClassName in javascript. But no effect(may be because of iframe?). This is the actual pic
And this is what i desire -- the fb page plug-in title has been changed.
Is it possible to achive this??
Upvotes: 0
Views: 76
Reputation: 105
Finally found a work around for the requirement. It is not possible to modify the page Pugin but -
By this method even individual posts can be tailored accordingly. A working example is at - http://callmenick.com/post/displaying-a-custom-facebook-page-feed
Upvotes: 0
Reputation: 96306
No, it is not possible.
The iframe content is from a different domain, and therefor the Same Origin Policy prevents you from accessing its content via JavaScript from your site.
Upvotes: 1