rvaidun / befake

view bereals without posting your own :)
286 stars 126 forks source link

Friends of friends posts request #133

Closed mast-and closed 3 months ago

mast-and commented 1 year ago

It would be great to see the postings of my friends' friends. Since the new update implements this.

rvaidun commented 1 year ago

How are you able to see it?

mast-and commented 1 year ago

image At the top of the page, after you post a bereal, the "friends of friends" options will appear.

mast-and commented 1 year ago

Is it posible to have this into the app?

Ein-Tim commented 1 year ago

@dominik-pm This feature isn't even live in BeReal, right?

Breathix commented 1 year ago

it is but it would be cool to see it added in befake

Ein-Tim commented 1 year ago

@Breathix I can't access this feature in BeReal.

ENLYOWH commented 1 year ago

https://github.com/notmarek/BeFake has this feature

mast-and commented 1 year ago

https://github.com/notmarek/BeFake has this feature

code has been removed due to c&d

GWPvGWP commented 1 year ago

Any plans for this feature?

Maybe anyone who still has code from notmarek?

rvaidun commented 1 year ago

From what I remember the endpoint was https://mobile.bereal.com/api/feeds/friends-of-friends but this endpoint is giving me a 401 Error.

I also haven't seen this feature on the official app so I have no way of reverse engineering it. image

U14-dev commented 1 year ago

live now^ the endpoint returns the feed like this: { posts: [ { id: 'XXXX', user: [Object], moment: [Object], primary: [Object], secondary: [Object], takenAt: 'XXX', postedAt: 'XXXX', lateInSeconds: 0, realmojis: [Object], tags: [] } ], next: 'XXXXXX==' }

but haven't figured out how to show the next page yet, i remember it was a req param like {page: next} or sth

macedonga commented 1 year ago

You just have to add to the query the "page" argument. So the url for the request with the next token given to you by the api (which btw is just some base64 encoded json object) will look like this: https://mobile.bereal.com/api/feeds/friends-of-friends?page={nextTokenHere}

To see how this and other endpoints work, just disassemble the base.apk file from the apkm file you can download from apkmirror :-)

Also (i know, shameless plug), if you don't feel like coding it in your fork yourself, you can check out my bereal client on here: BeUnblurred. (it's open source ;-D)

Breathix commented 1 year ago

looks sick, I'll try it asap

U14-dev commented 1 year ago

Ah yes, i'm on vacation right now so I haven't been able to take a close look at the update yet. Your client looks good tho^

macedonga commented 1 year ago

Ah yes, i'm on vacation right now so I haven't been able to take a close look at the update yet. Your client looks good tho^

Thanks :-)

macedonga commented 1 year ago

https://mobile.bereal.com/api/feeds/friends-of-friends?page={nextTokenHere}

It now looks that that endpoint returns 0 posts if you haven't posted a public BeReal.

U14-dev commented 1 year ago

Yep and they also fixed switching to private multiple times a day: Screenshot_20230830-195524_Gallery

ghost commented 1 year ago

You have to post a bereal and have that enabled in your bereal to see friends of friends