Please follow this link HwiOAuthBundle. Please specify the redirect URI properly while creating app for the network.
If you used facebook: No need to mention the redirect URI. While working with google we have to specify the redirect URI properly.
Please follow HwiOAuthBundle documentation and let me know If you found any error.