-
Notifications
You must be signed in to change notification settings - Fork 597
Messenger Day implementation #434
base: master
Are you sure you want to change the base?
Conversation
@gamelaster is on fire 🔥 🔥 |
@Schmavery Could you review? |
Now that we're getting into some of the graphql interface, would it make any sense to find a supported graphql client library that we can use rather than reimplementing all the logic ourselves? I don't know much about it, but a quick search revealed a couple of options, including https://github.com/kadirahq/lokka and https://github.com/gucheen/FetchQL |
@Schmavery As far as I search, I didn't found an library what returns similar code like going into Facebook's graphQL |
I found some things about graphQL and QueryFragments, but still I can't found any similar syntax close to this. |
Sorry @gamelaster, just haven't had much time to think about what is the best way to move forward here. Maybe @bsansouci has some ideas. I kind of wish there was a way that we didn't need to have src/executeGraphQueryBatch.js |
@Schmavery executeGraphQueryBatch is not of course needed, I just wanted to let users ability to execute custom graphQL queries, it's really powerful. With that you can fetch the normal messages etc (It's just require experimentation). We can move this function to |
@gamelaster what if I want to get days of all friends? do I have to call |
@ravkr yes, for every user, but you now gave me idea, where I can try modify graphQL batch to fetch all users. It's could work, but not sure. |
After testing, it's not working anymore, I must investigate it again. |
Did the API on Facebook's end change again? |
Heyyyy @gamelaster are you still working on this? |
@bsansouci sorry for late response, I lost notification for this. Well, the actual code in merge request is not working anymore, the format of graphQL has been changed. I will try to make a new one (probably I will close this PR and make new one, since I saw some code already integrated for graphQL) |
With that graph QL batch ability you can fetch almost everything, it's really powerful.
The syntax of graphQL is little chaotic, but after some time of investigating, you get it!
By the way, in Messenger Days has been an "Sticker Feature", but probably unused!