matrix-hacks / matrix-puppet-facebook

a puppetted facebook bridge
98 stars 21 forks source link

Unable to create the facebook-registration.yaml file #37

Closed T0MuX closed 6 years ago

T0MuX commented 6 years ago

Hi !

I was following the instructions in the readme, but at the facebook-registration.yaml creation step it fails.

I have the following issue :

$ node index.js -r -u "http://localhost:8090"
Unable to load crypto module: crypto will be disabled: Error: global.Olm is not defined
Unable to load crypto module: crypto will be disabled: Error: global.Olm is not defined
This bridge performs matrix user puppeting.
This means that the bridge logs in as your user and acts on your behalf
For the rationale, see https://github.com/kfatehi/matrix-appservice-imessage/commit/8a832051f79a94d7330be9e252eea78f76d774bc
Enter your user's localpart
 my-user
Enter password for @t0:synapse.keyvan.pw
 **************

getaddrinfo ENOTFOUND synapse.keyvan.pw synapse.keyvan.pw:443

By the way, what is "localpart" exactly ? I don't really undetstand :/

Thank you by advance

kfatehi commented 6 years ago

Hi @T0MuX

You need to modify config.json, specifically this line: https://github.com/matrix-hacks/matrix-puppet-facebook/blob/master/config.sample.json#L6

"Localpart" is a reference to the part before the "@" sign in your full matrix id.

For example, if my matrix user id is @kfatehi:synapse.keyvan.pw then my "localpart" is "kfatehi"