Can you update that function?
Get posts from facebook group and repost to xenforo with keywords
I'd like to recommend you a custom work to handling your requirement. Please submit a ticket to our Custom work department with detailed information. So we will check and give you the quote.