출근할때마다 페이스북 그룹에 출근부 올리는데
맨날 복붙 하기 귀찮아서
파이썬으로 아예 위젯 하나 만들어서 자동화할려고 했었는데
페이스북 api가 자료가 별로 없네
https://developers.facebook.com/?no_redirect=1
여기서 앱 만들고
publish_to_group 토큰 발급받아서, 사용하는데
facebook.GraphAPIError: (#200) If posting to a group, requires app being installed in the group, and \
either publish_to_groups permission with user token, or both pages_read_engagement \
and pages_manage_posts permission with page token; If posting to a page, \
requires both pages_read_engagement and pages_manage_posts as an admin with \
sufficient administrative permission
오류를 찾아보니까
앱을 페이스북 그룹에 추가시키라는데
앱을 그룹에 추가시키는법을 아무리 찾아봐도 안나오네...
찾아보니까 앱을 승인 받는게 먼저인데
승인 받을려면 오래걸린다는데
그냥 api 쓰지말고 셀레니움으로 봇마냥 만드는게 빠를려나
코드는 여기서 참고했슴
https://www.jcchouinard.com/post-to-groups-using-facebook-graph-api-python/
나는 잘아는건아니고 살짝봤는데 무슨 api쓸려면 허가받아야되고 그런게 복잡해서 걍 포기햇슴 - dc App
셀레니움은 잘 모르겟다 캡챠같은거있으면 또 힘드니깐 - dc App
이번에 페이스북 뭐 개인정보 이거땜에 논란많아서 api 쓰기가 좀 까다로움
그거 그냥 개인정보 삭제하는 콜백만 하나 추가하면 끝임 거창한거 없고
페북 개편되면서 정책 빡세짐
예전엔 그런거없이 걍됏는데