How to make the selector relative and dynamic for all pages

Hi I am working on Facebook timeline post automation, there is a problem selecting the post option for each profile links, its doing for 2 links respectively but not for all link. There is ui selector issue of not finding it, how to validate the selector for all profiles as posting on timeline looks same for all accounts. I have unticked id and page title as it will change every time but still not validating for all. Please help.