Hello Baha Bayar,
Thanks for reaching out!
As per the documentation, Get Presence Graph API requires an authenticated user context in order to function i.e., works when a signed-in user is present and doesn't support application permissions (without a signed-in a user present).
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.