Discussion Board

Teacher Two on 2025-01-17 at 15:16

Hi I'm trying to extract the university of the user from their Facebook profile and found this post to be useful - Getting Education with Facebook Graph API in PHP

However, in my implementation the 'education' field is not being recognised for some reason and is throwing an error in the browser of " Undefined index: education". This is odd because the first and last name and gender are all being retrieved fine but not the 'education' field.

Does anyone know why this is happening?

Hide replies
Admin Dear Hub on 2025-01-17 at 15:17

Hello there. From the user education column you can read facebook users' school name, id and type. just grab the school name in a variable running fql. Check: https://developers.facebook.com/docs/reference/fql/user/

Student One on 2025-01-17 at 15:10

Hello there, this is my first visit here. Nice to meet you all.

Hide replies
Teacher Two on 2025-01-17 at 15:12

Great! It is good to have you here!

© 2025 Centre for Holistic Teaching and Learning, Hong Kong Baptist University.