E
E
EVOSandru62016-09-09 09:43:10
JavaScript
EVOSandru6, 2016-09-09 09:43:10

How to post to facebook group via javascript api?

Good afternoon,
There is a need to place regular text posts in a facebook group owned by the owner of the application. Naturally, after prior authorization by any user on the site working with this application.

FB.api('/me/feed',  'post', { 
            message : 'my first status . . . '
        }, function(response) {
            console.log('post');
            if(status) {
                console.log('post.status');
                status.innerHTML = response.id;
                // login.style.visibility = 'hidden';
            }
        });

went normally - but only on behalf of the owner of the group and the application (this is one person)
If I replace '/me/feed' with '/{group-id}' - the post is not sent (
I poked around the application settings, it seems that you need to get permission for {scope: 'publish_actions'} . I didn't understand how to make a screencast of its implementation without it. I made a screencast of what is, clicked - Save .
Below the list of scope items of requests, I saw the following inscription:
Before you can send the application for verification, do the following:
Specify the "Privacy Policy URL" field for your app by visiting the following link: Settings.

Tell me - what to write in the file of this privacy policy or do you just need to copy the text from somewhere? The third day I fight with this API . For a contact, posting was much easier to implement.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2016-09-09
@Sanasol

https://www.google.co.th/search?q=facebook%20priva...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question