I think the button should be in the same position every time when opening in app on phone so you could use check colour of pixel action to confirm if you clicked 'Like' or not and if not use ui interaction to click it (if thats what you want)
Edit. Actually the button isn't in the same place each time so that complicates things