nextcloud / socialsharing

🐦 Social sharing via Facebook, Twitter & more
https://github.com/nextcloud-releases/socialsharing
GNU Affero General Public License v3.0
25 stars 15 forks source link

can't share with facebook socialsharing #18

Closed JimmyKater closed 6 years ago

JimmyKater commented 7 years ago

hey all,

i’m running nc 12.0.0.29 php 7.0.19 mysql 10.1.23 on a raspi 3, raspbian 8

and i can’t share anything using the facebook-button/entry. it ends up in an errormessage in an extra window which roughly translates as: URL can’t be loaded: Domain of this URL isn’t available within app. To be able to load the app enter all domains and subdomains of your app at appdomain-field in your app-setup. (original “Kann URL nicht laden: Die Domain dieser URL ist nicht in den Domains der App vorhanden. Um diese URL laden zu können, füge alle Domains und Subdomains deiner App im Appdomain-Feld in deinen App-Einstellungen hinzu.”)

bug or feature? or where can i, myself, enter said domains to make it run?

JimmyKater commented 6 years ago

so the value that comes with {{reference}} in https://www.facebook.com/sharer/sharer.php?u={{reference}} (found under OC/apps/socialsharing_facebook/js/socialsharingfacebook.js) seems to be wrong and leads to exactly the same errormessage that i get. just enter https://www.facebook.com/sharer/sharer.php?u={{reference}} in your browser and you'll see what i mean. i dunno where {{reference}} is set.

JimmyKater commented 6 years ago

problem solved. you need to enable all apps with your facebook-account or otherwise you won't be able to use any app. sounds logical, doesn't it? but with no hint it was difficult to find out about it.

NB - i decided to re-disable all apps that interact with fb, again.