adding solution for facebook and twitter attributes