문제

I noticed that with a URL of the format

facebook.com/username/timeline/2013/4

we move to the end of the specified month of the year.

Now I need to use an url to navigate a user in my timeline to a specific post (facebookID) in a way that he can still move up and down on timeline from this point of time (anchor).

Any clues?

도움이 되었습니까?

해결책

On a Facebook page, each post's HTML element has its own unique HTML id. You can make use of this fact to directly link to a post within a page on Facebook by identifying the post's id and using it as the fragment identifier in the URL.

To find a post's HTML element id, right click the particular post in your browser [I'm assuming Chrome], then click "inspect element". In the opened development environment, find an enclosing div of the inspected element which contains an id HTML attribute.

For example, a link to a particular post on Disney's March 2013 Facebook timeline is the following:

https://www.facebook.com/Disney/timeline/2013/02/#tl_unit_6154529015953642023

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top