fix: prevent mobile to desktop version redirect#64
Merged
ArnaudLigny merged 4 commits intoArnaudLigny:masterfrom Nov 9, 2023
Merged
fix: prevent mobile to desktop version redirect#64ArnaudLigny merged 4 commits intoArnaudLigny:masterfrom
ArnaudLigny merged 4 commits intoArnaudLigny:masterfrom
Conversation
Author
|
@ArnaudLigny, please take a look |
Owner
|
Merged and deployed, now I'm waiting for the webstore validation (because of new required permissions). |
|
Hi @ArnaudLigny However, clicking the icon does open the relevant Facebook page. Thanks! |
|
Mine was updated a month ago and seemed to fix the issue of just seeing the question mark, but now for some reason the question mark is back. Any progress? Thanks, |
Owner
|
Hello @dan073eb, I thinks it's related to the new policy about cookies... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Unfortunately #62 issue has occurred again :( Facebook automatically redirects (HTTP 301 response) every https://m.facebook.com/home.php HTTP request to desktop version https://www.facebook.com/. The only solution is to rewrite User-Agent HTTP header to convince Facebook that HTTP request was sent from mobile browser.
PS: Rewriting User-Agent header simply in
window.fetchfunction doesn't work in Chrome.