@facebook_required_lazy(scope=['manage_pages', 'publish_stream', 'photo_upload'])
def index(request):
if request.method == 'POST':
form = CPYPosterForm(request.POST)
if form.is_valid():
fb = require_persistent_graph(request)
msg = form.cleaned_data['msg']
pages = form.cleaned_data['pages']
res = dict()
for p in pages:
try:
key = PAGE_CHOICES[p]
except KeyError:
key = p
res[key] = fb.set('{page_id}/feed'.format(page_id=p), message=msg)
I'm trying to post to the feeds of multiple pages. When I post simple text, no problem. However, when I attempt to upload a photo or even a link, the item does get posted to the feed, but it's to the "Recent Posts by Others" section and not the page feed itself.
It gets posted as me and not as the page. Is there something I need to do special to post an item in the pages feed (as the page) with a link and/or photo?