Publish same post in several facebook groups

I've tried to publish a post in several groups of Facebook

#######################################
### Publicar en vários grupos do FB ###
#######################################

library(Rfacebook)

rm(list = ls())

# Replace <access_token> with your access token
fb_oauth <- fbOAuth(app_id = "my.mail@gmail.com", app_secret = "MyFacebookPassword", extended_permissions = "publish_to_groups",
                    redirect_url = "http://localhost:1410/", access_token = "<access_token>")

# Get a list of groups that you belong to
my_groups <- getGroup(token = fb_oauth)

# Replace <message> with your text message
post_message <- list(message = "<message>")

for (i in 1:length(my_groups$id)) {
  postGroup(group_id = my_groups$id[i], post_message, token = fb_oauth)
}

And I got this error.

Error in fbOAuth(app_id = "my.mail@gmail.com", app_secret = "MyFacebookPasword",  : 
  unused arguments (redirect_url = "http://localhost:1410/", access_token = "<access_token>")

Can you help me to solve it?

I recommend reading the documentation :

On the other hand I dont see postGroup listed .. so I don't think you can succeed in your goal using Rfacebook...

I'm not really familiar with Rfacebook myself, but I'm glad to see that you've provided the code for it in your post. Hopefully, other members who are familiar with it can provide you with some helpful feedback. I think if you want to draw attention to yourself or your problem, you might need a tic tac and Buy TikTok Likes - Get Real TikTok Likes, Try Famoid!. While I understand that it's important to promote your content, it's also important to remember that this is a forum where people come to discuss various topics and learn from each other. So, it might be better to focus on asking questions and engaging with others rather than promoting a service.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.